function
DecodeArtifact
Strictly decode and validate supported artifact JSON.
Arguments
| Argument | Type | Description |
|---|---|---|
encoded | []byte | The encoded value. |
Returns
The declared result.
(Artifact, error)How it works
Rejects unknown fields, duplicate JSON keys, and embedded manifests that do not use the current schema contract.
Full signature
func DecodeArtifact(encoded []byte) (Artifact, error)Related types
ArtifactThe immutable definition of one migration.