Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Properties ending with "?" aren't made optional anymore #15

Closed
postatum opened this issue Sep 12, 2016 · 0 comments
Closed

Properties ending with "?" aren't made optional anymore #15

postatum opened this issue Sep 12, 2016 · 0 comments

Comments

@postatum
Copy link
Contributor

Getting canonical form type with property ending with "?" doesn't make it required: false anymore. Iif I recall correctly it used to work before recent updates.

Cat:
  type: object
  properties:
    name?:
      type: string
{
  "properties": {
    "name?": {
      "type": "string",
      "required": true
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": true
}
antoniogarrote added a commit that referenced this issue Sep 12, 2016
Fixes #15, dealing correctly with required facet and object optional …
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant