fix(openapi): use 3.1 version#5489
Merged
Merged
Conversation
mtarld
reviewed
Mar 23, 2023
| ->arrayNode('api_keys') | ||
| ->useAttributeAsKey('key') | ||
| ->validate() | ||
| ->ifTrue(static fn($v): bool => empty(array_filter(array_keys($v), fn($item) => preg_match('/^[a-zA-Z0-9._-]+$/', $item)))) |
Contributor
There was a problem hiding this comment.
Suggested change
| ->ifTrue(static fn($v): bool => empty(array_filter(array_keys($v), fn($item) => preg_match('/^[a-zA-Z0-9._-]+$/', $item)))) | |
| ->ifTrue(static fn($v): bool => !empty(array_filter(array_keys($v), fn($item) => !preg_match('/^[a-zA-Z0-9._-]+$/', $item)))) |
c452950 to
2ca35f2
Compare
mtarld
approved these changes
Mar 23, 2023
2ca35f2 to
a5a7334
Compare
a5a7334 to
22541ea
Compare
soyuka
added a commit
to mrossard/core
that referenced
this pull request
Apr 14, 2023
Deuchnord
pushed a commit
to Deuchnord/api-platform-core
that referenced
this pull request
Apr 25, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configuration now validates the api keys "key" using the pattern from the OpenAPI 3.1 specification: https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.json#L282