Problem/Motivation
Validate the file using redocly lint, observe several errors.
Many of them are because of an empty description.
Expected type `string` but got `null`.
20712 | "patch": {
20713 | "summary": "Relationship: field_media_image (File)",
20714 | "description": null,
20715 | "parameters": [
20716 | {
For my current project, this fixes 1100 out of 1700+ errors.
See #3197082: Generated Swagger.json Does Not Validate with Swagger Editor
Steps to reproduce
What I did was:
- Download the openapi spec from my local ddev even (wget http://url//openapi/jsonapi?_format=json)
- Use jq to properly format this file,
cat jsonapi?_format=json | jq > out.json redocly lint out.json
Proposed resolution
Fix all errors, but not all in this issue, to make reviewing easier.
Remaining tasks
-
User interface changes
-
API changes
protected getRouteMethodDescription is now strictly typed
Data model changes
-
Issue fork openapi_jsonapi-3577895
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
borisson_Comment #3
borisson_I have fixed this, but the commit does not seem to show up in gitlab, I will have some patience.
Comment #7
pcambraMany thanks for all your work here @borisson_!