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

JSONSchemaFactory does not support $ref #17

Open
serhalp opened this issue Sep 29, 2015 · 0 comments
Open

JSONSchemaFactory does not support $ref #17

serhalp opened this issue Sep 29, 2015 · 0 comments

Comments

@serhalp
Copy link
Contributor

serhalp commented Sep 29, 2015

Given this JSON Schema:

  $schema: "http://json-schema.org/schema#"

  definitions:
    order:
      type: 'object'
      required: ['status']
      properties:
        status:
          type: 'boolean'

  type: 'object'
  required: ['order']
  properties:
        updatedOrder:
          $ref: "#/definitions/order"

The expected behavior of unionized.JSONSchemaFactory instantiated with this schema is the same as that instantiated with the following schema:

  $schema: "http://json-schema.org/schema#"

  type: 'object'
  required: ['order']
  properties:
        updatedOrder:
          type: 'object'
          required: ['status']
          properties:
            status:
              type: 'boolean'

Instead, $ref is seemingly silently treated as a literal field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants