Skip to content

Allow to ignore non OpenApi attributes#1756

Merged
DerManoMann merged 2 commits into
zircote:masterfrom
DerManoMann:ignore-other-attr
Apr 18, 2025
Merged

Allow to ignore non OpenApi attributes#1756
DerManoMann merged 2 commits into
zircote:masterfrom
DerManoMann:ignore-other-attr

Conversation

@DerManoMann

@DerManoMann DerManoMann commented Apr 18, 2025

Copy link
Copy Markdown
Collaborator

Adds an option to AttributeAnnotationFactory to ignore non OpenApi annotations and not instantiate them.

This can be done by either instantiating the AttributeAnnotationFactory yourself or by configuring this in the Generator.

(new Generator())
    ->setConfig([
        'generator' => [
            'ignoreOtherAttributes' => true,
        ],
    ]);

Fixes #1747

@DerManoMann DerManoMann merged commit df587cd into zircote:master Apr 18, 2025
@DerManoMann DerManoMann deleted the ignore-other-attr branch April 18, 2025 00:34
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.

Ignore other annotations

1 participant