Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Better way to resolve allOf #165

Open
SOHELAHMED7 opened this issue Apr 25, 2024 · 1 comment · May be fixed by cebe/php-openapi#208
Open

Better way to resolve allOf #165

SOHELAHMED7 opened this issue Apr 25, 2024 · 1 comment · May be fixed by cebe/php-openapi#208
Labels
enhancement New feature or request

Comments

@SOHELAHMED7
Copy link
Contributor

Though PR SOHELAHMED7#30 and SOHELAHMED7#14 fixes corresponding issues, we need a more proper way for how allOf is resolved.

This can be part of this lib or cebe/php-openapi.

@SOHELAHMED7
Copy link
Contributor Author

More specifically if the property have reference.

Example:

invoice:
          allOf:
            - $ref: '#/components/schemas/Invoice'
            - x-faker: false
            # - nullable: true


user_2:
            allOf:
              - $ref: '#/components/schemas/User'
              - x-fk-on-update: CASCADE
              - x-fk-on-delete: SET NULL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
2 participants