Skip to content

Conversation

@narcoticfresh
Copy link

@narcoticfresh narcoticfresh commented Feb 22, 2024

Hi guys
Great library!

I really really really hope this gets merged (or feedback given), I see many open PRs here collecting dust ;-/. Can we maybe be of assistance in maintaining this library?

Anyway, this PR fulfills a need we have: The format validators need more context, they need to know the full schema of the property it is applied to. The OpenAPI standard allows for additional fields in the schema that are prefixed with x-*. We use those fields for additional metadata.

An example would be the file format that would allow for a x-mime-type additional attribute - then this fictional format validator could do a mime detection and refuse the binary blob if the mime type is now in the additional attribute.

Thanks for feedback/merge

UPDATE Locally the phpunit suite was green, it seems there was an error setting up the tests in Scrutinizer. I seem to be unable to restart the task 😢

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.

1 participant