asyncapi-archived-repos / docgen

AsyncAPI documentation generator. DEPRECATED in favour of
https://github.com/asyncapi/generator
Apache License 2.0
21 stars 11 forks source link

nested allOf #36

Closed ymarillet closed 6 years ago

ymarillet commented 6 years ago

Nesting at least 2 level of "allOf" does not seem to work:

asyncapi: "1.2.0"
info:
  title: Title
  version: "1.0.0"
  description: Description

servers:
- url: rabbitmq:5676/
  scheme: amqp

topics:
  my_topic:
    publish:
      $ref: "#/components/messages/my_topic"

components:
  messages:
    my_topic:
      summary: Topic1 message
      description: Bla bla
      payload:
        $ref: "#/components/schemas/BazWithQux"

  schemas:
    Foo:
      type: object
      required:
      - foo
      properties:
        foo:
          type: string

    Bar:
      type: object
      required:
      - bar
      properties:
        bar:
          type: string

    Baz:
      allOf:
      - $ref: "#/components/schemas/Foo"
      - $ref: "#/components/schemas/Bar"

    BazWithQux:
      allOf:
      - $ref: "#/components/schemas/Baz"
      - type: object
        required:
        - qux
        properties:
          qux:
            type: string

The "qux" property does not show in the "BazWithQux" object