For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTConvert YANG to JSON schema
        • POSTCreate a JSON form
        • POSTDecode an encoded JSON schema
        • DELDelete a forms
        • GETFind a form
        • POSTImport form documents
        • GETReturn all forms
        • PUTUpdate a form
        • POSTValidate data against a schema
        • POSTValidate form data against its schema
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceJSON Forms

Validate data against a schema

POST
http://localhost:3000/json-forms/validate-data
POST
/json-forms/validate-data
$curl -X POST http://localhost:3000/json-forms/validate-data \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "status": 200,
3 "validation": {
4 "valid": true,
5 "errors": [
6 "string"
7 ]
8 },
9 "message": "Form data is valid."
10}
Performs data validation, given a JSON schema and form data.
Was this page helpful?
Previous

Validate form data against its schema

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

request body
jsonSchemaboolean or objectOptional
dataobjectOptional

Response

results from the form validation
statusenum
Allowed values:
validationobject
messagestring

Errors

500
Internal Server Error