Skip to main content

no-binary-schema-for-json-request-body-content

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The binary format cannot be used with schemas that are being used with JSON request body content.

PropertyValue
EnabledNo
Maximum SeverityError
MessageThe format binary is not applicable to schemas associated with JSON request body content.
CodeOPENAPI3APIMATIC_L673
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting binary schema request body content json

Suggested Fixes

  • Ensure that the format of the schema is not set to binary for any schemas used within JSON request body content.
  • Consider using another compatible format instead of binary for JSON request body content.
  • Try adding the binary type property schema in form parameters.

For More Information