Openapi Validator API
POST
https://api.findutils.com/api/tools/openapi-validator/execute Validate an OpenAPI 3.x (or Swagger 2.0) document given as JSON or YAML and return a report with errors, warnings, and summary info (title, version, path count, operation count). Errors cover a missing version field, missing info.title or info.version, a missing paths object, paths that do not start with "/", and operations without responses. Warnings cover missing operationId, Swagger 2.0 input, non-3.x versions, and component schemas with no type, $ref, or composition keyword.
Request body
application/json-
spec
string required
The OpenAPI or Swagger document as JSON or YAML text.
Example arguments
Verified{
"spec": {
"openapi": "3.0.3",
"info": {
"title": "Sample API",
"version": "1.0.0"
},
"paths": {
"/users": {
"get": {
"operationId": "listUsers",
"responses": {
"200": {
"description": "ok"
}
}
}
}
}
}
} More Validation tools
- Email Validate Validate an email address and report every rule it breaks and break it into local / domain / TLD parts.
- Html Formatter Format (beautify) or minify HTML and return the result with a tag-balance validation report.
- Json Validate Validate a JSON string.
- Phone Format Validate a phone number and format it as E.164 (+CCNNN…), international and national, using libphonenumber metadata for every country.
- State Machine Designer Validate a finite state machine given as nodes and edges and return a normalized machine config plus issues.
- Url Validate Validate that a string is a well-formed URL and (optionally) require HTTPS.