Skip to content

Instantly share code, notes, and snippets.

@XY-Wang
XY-Wang / ink-v3-schema-updated.json
Created December 23, 2022 10:40
Updated ink! V3 metadata schema with LayoutKey as type=string
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MetadataVersioned",
"description": "Versioned ink! project metadata.\n\n# Note\n\nRepresents the version of the serialized metadata *format*, which is distinct from the version of this crate for Rust semantic versioning compatibility.",
"oneOf": [
{
"description": "Version 0 placeholder. Represents the original non-versioned metadata format.",
"type": "object",
"required": [
"V0"
@XY-Wang
XY-Wang / ink-v4-schema.json
Created December 23, 2022 09:12
JSON schema for ink! V4 metadata
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InkProject",
"description": "An entire ink! project for metadata file generation purposes.",
"type": "object",
"required": [
"contract",
"source",
"spec",
"storage",