Skip to content
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

Problems in the API Spec #159

Open
christian-heusel opened this issue Mar 24, 2022 · 0 comments
Open

Problems in the API Spec #159

christian-heusel opened this issue Mar 24, 2022 · 0 comments

Comments

@christian-heusel
Copy link
Collaborator

https://validator.swagger.io/validator/debug?url=https%3A%2F%2Fmuesli.mathi.uni-heidelberg.de%2Fopenapi.json

{
  "messages": [
    "attribute paths.'/openapi.json'(get).responses.responses is missing",
    "attribute paths.'/api/v1/lectures/{lecture_id}'. Declared path parameter lecture_id needs to be defined as a path parameter in path or operation level",
    "attribute paths.'/api/v1/tutorials/{tutorial_id}'. Declared path parameter tutorial_id needs to be defined as a path parameter in path or operation level",
    "attribute paths.'/api/v1/exercises/{exercise_id}'. Declared path parameter exercise_id needs to be defined as a path parameter in path or operation level",
    "attribute paths.'/api/v1/exercises/{exercise_id}/{user_id}'. Declared path parameter exercise_id needs to be defined as a path parameter in path or operation level",
    "attribute paths.'/api/v1/exercises/{exercise_id}/{user_id}'. Declared path parameter user_id needs to be defined as a path parameter in path or operation level",
    "attribute paths.'/api/v1/exams/{exam_id}'. Declared path parameter exam_id needs to be defined as a path parameter in path or operation level"
  ],
  "schemaValidationMessages": [
    {
      "level": "error",
      "domain": "validation",
      "keyword": "required",
      "message": "object has missing required properties ([\"responses\"])",
      "schema": {
        "loadingURI": "http://swagger.io/v2/schema.json#",
        "pointer": "/definitions/operation"
      },
      "instance": {
        "pointer": "/paths/~1openapi.json/get"
      }
    },
    {
      "level": "error",
      "domain": "validation",
      "keyword": "enum",
      "message": "instance value (\"2.0.0\") not found in enum (possible values: [\"2.0\"])",
      "schema": {
        "loadingURI": "#",
        "pointer": "/properties/swagger"
      },
      "instance": {
        "pointer": "/swagger"
      }
    }
  ]
}
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

No branches or pull requests

1 participant