Content

Canonicalize content

Changed on

Canonicalizes the provided content using the rules for the specified artifact type. Canonicalization is specific to each artifact type, but typically involves removing extra whitespace, sorting object keys, and formatting the content in a consistent manner. The canonicalized content is returned as the response body.

Note: this endpoint operates on the content as provided and does not resolve external references ($ref). To canonicalize content with references resolved, use GET /groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/content?canonical=true on a stored artifact instead.

This operation can fail for the following reasons:

  • Provided content (request body) was empty (HTTP error 400)
  • The artifact type was not provided or was invalid (HTTP error 400)
  • A server error occurred (HTTP error 500)
post/content/canonicalize

Request

  • The document declares no server URL.
  • Auth
    none declared

Query parameters

artifactTypestring required
Example:AVRO

Indicates the type of artifact represented by the content. The server uses this to determine how to canonicalize the content.

Request body */*

string binary required

Response

The content of one version of one artifact.

string binary required

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status