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

feat: flatten allOf cases in message payloads #16

Closed
wants to merge 2 commits into from

Commits on Apr 28, 2020

  1. Flatten the appearance of 'allOf' schema elements

    In the case of 'allOf' schema elements, the consumer doesn't need to know that it's been constructed of multiple definitions (unlike oneOf or anyOf). Therefore, the template can just render the combined children.
    jamescrowley committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    f1ed4c0 View commit details
    Browse the repository at this point in the history
  2. Handle additionalProperties in 'allOf' case

    When we're using 'allOf',
    * if all elements in the allOf allows additional properties, then this will work
    * other set-ups are likely edge cases, as the properties would need to overlap so they're accepted by all
    jamescrowley committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    a5c8d31 View commit details
    Browse the repository at this point in the history