Canonicalize content
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)
Query parameters
Indicates the type of artifact represented by the content. The server uses this to determine how to canonicalize the content.
Response
The content of one version of one artifact.