Skip to content

Conversation

LoicBoursin
Copy link
Contributor

Q A
Branch? main
Tickets #4069
License MIT
Doc PR N/A

@soyuka
Copy link
Member

soyuka commented Jun 6, 2021

From @Chris53897

There are a lot of changes with 3.1.
https://github.com/OAI/OpenAPI-Specification/releases/tag/3.1.0-rc0

format (whether byte, binary, or base64) is no longer used to describe file payloads. As part of JSON Schema compliance, now contentEncoding and contentMediaType can be used for such specification.

Docs should be updated after merging. https://api-platform.com/docs/core/file-upload/#configuring-the-entity-receiving-the-uploaded-file

@LoicBoursin LoicBoursin changed the title fix(openapi): reflect specification to OpenAPI 3.1 feat(openapi): reflect specification to OpenAPI 3.1 Jun 8, 2021
@LoicBoursin LoicBoursin marked this pull request as ready for review June 8, 2021 14:41
@LoicBoursin
Copy link
Contributor Author

OpenAPI documents validation fails in test because OpenAPI 3.1 is not yet supported by swagger-parser. It will be fixed by APIDevTools/swagger-parser#171

@soyuka soyuka added the Ready label Aug 10, 2021
@soyuka soyuka merged commit e9d0139 into api-platform:main Oct 22, 2021
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.

2 participants