Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OAS] Example of Zod usage for API validation #187562

Closed

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jul 4, 2024

Summary

This is an example of how we can use Zod. This PR uses Zod in SLO delete API. (Related to [OAS] zod support)

Here is how you can check the generated OAS for your API:

  1. Start ES
  2. Add server.oas.enabled: true to kibana.dev.yml
  3. Start Kibana yarn start --no-base-path
  4. Use one of these options to get the generated OAS for your new API

@maryam-saeidi maryam-saeidi self-assigned this Jul 4, 2024
@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@jloleysens jloleysens deleted the branch elastic:oas/zod-poc July 19, 2024 15:53
@jloleysens jloleysens closed this Jul 19, 2024
@maryam-saeidi maryam-saeidi deleted the oas/zod-example branch July 22, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants