Skip to content

Improve in OPEN_API Vallidations #42

@JailtonAraujo

Description

@JailtonAraujo

Currently, when using Netuno's OPEN_API validations, we do not have an accurate response to violations.

{
    "tags":[
      "serviços de produto"
    ],
    "summary": "Detalhe do Produto",
    "description": "É obtido todos os campos de detalhe do produto especificado.",
    "type": "object",
    "properties": {
      "uid": {
        "type": "uid"
      }
    },
    "required": [
      "uid"
    ]
}

The above example shows the validation of a uid field which requires the correct format, otherwise it returns an error with status 400.
Furthermore could return a message more friendly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions