Skip to content

add default documentation formats #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ api_platform:
jsonld:
mime_types: ['application/ld+json']

# The list of enabled documentation formats. The first one will be the default.
documentation_formats:
jsonld:
mime_types: ['application/ld+json']

json:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsonld should be there too right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, if you think it is useful to output jsonld, I can add it back, but as swagger understand json, I removed it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we disable the Hydra documentation (jsonld format), the admin and the PWA generator will not work anymore.

mime_types: ['application/json']

Expand Down