Ask Your Question
3

What is the reason for the 'additionalProperties = false' being displayed on my custom schema filter in the Swagger docs?

asked 2023-05-16 07:11:11 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-16 07:27:01 +0000

qstack gravatar image

The reason for the 'additionalProperties = false' being displayed on your custom schema filter in the Swagger docs is that it is telling Swagger that no additional properties are allowed on this object. This means that any properties that are not explicitly defined in the schema will be rejected and not included in the object. This is a way to ensure that the object conforms to a specific structure and does not include any unexpected properties.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-16 07:11:11 +0000

Seen: 8 times

Last updated: May 16 '23