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

update openapi/jsonschema conversion to translate jsonUnknown to additionalProperties #183

Merged

Conversation

benoitlouy
Copy link
Contributor

@benoitlouy benoitlouy commented Aug 14, 2024

Given the following smithy definition

structure Dog {
  name: String
  @jsonUnknown
  attributes: Attributes
}

map Attributes {
  key: String
  value: Document
}

the following JSON schema will be produced

"Dog": {
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

@benoitlouy benoitlouy changed the title update openapi conversion to translate jsonUnknown to additionalProperties update openapi/jsonschema conversion to translate jsonUnknown to additionalProperties Aug 14, 2024
@lewisjkl lewisjkl merged commit 214146b into disneystreaming:main Aug 14, 2024
3 checks passed
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.

2 participants