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.
Description
Starting with v0.6.0 faststream supports AsyncAPI 3.0.
The AsyncAPI 3.0 documentation states:
Note: AsyncAPI use js-yaml as parser, *js-yaml playground
According to spec, yaml of the following type:
should be converted to
{protocolVersion: "3.2"}, i.e. to a string, butPyYAMLconverts it to an float:(Also, PyYAML does not fully support YAML v1.2.* and does not pass the official yaml-test-suite).
Valid AsyncAPI config: https://studio.asyncapi.com/?share=851921b7-91cd-414c-9438-e94876953c0d
but faststream cannot load it
❯ faststream docs serve asyncapi.yaml `asyncapi.yaml` not supported. Make sure that your schema is valid and schema version supported by FastStreamType of change
Please delete options that are not relevant.
Checklist
just lintshows no errors)just test-coveragejust static-analysis