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

Feature Request - Document validator: Validate defaults, examples, formats, patterns #53

Open
yorickvP opened this issue Feb 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@yorickvP
Copy link

kin-openapi has some functionality where it checks that defaults and examples match the schema, and that formats match types and patterns are valid. This can, for example, reject the following schema:

{
  "properties": {
    "num": {
      "default": 1,
      "description": "Number of things",
      "maximum": 10,
      "minimum": 2,
      "title": "Num",
      "type": "integer",
      "x-order": 0
    }
  },
  "title": "Input",
  "type": "object"
}

Could this be implemented in libopenapi-validator?

@daveshanley
Copy link
Member

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants