Remove voucher subschema

This commit is contained in:
lash 2023-03-05 19:30:40 +00:00
parent 2e0259ec3e
commit 445609af2f
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
4 changed files with 0 additions and 35 deletions

View File

@ -6,4 +6,3 @@ build:
test: build
check-jsonschema --schemafile dist/cic.json test_valid.json
check-jsonschema --schemafile dist/voucher.json test_valid.json

View File

@ -41,17 +41,3 @@ fp = os.path.join('dist', 'cic.json')
f = open(fp, 'w')
json.dump(o, f)
f.close()
fp = os.path.join('.', 'voucher.in.json')
f = open(fp, 'r')
o_voucher = json.load(f)
for k in o_voucher['properties'].keys():
p = {}
for v in o_voucher['properties'][k]:
p[v] = o_voucher['properties'][k][v]
o['properties'][k] = p
fp = os.path.join('dist', 'voucher.json')
f = open(fp, 'w')
json.dump(o, f)
f.close()

1
dist/voucher.json vendored
View File

@ -1 +0,0 @@
{"$schema": "https://json-schema.org/draft/2020-12/schema", "title": "CIC core metadata container", "$id": "/cic/core", "type": "object", "properties": {"version": {"type": "integer"}, "attachments": {"type": "array", "items": {"$ref": "/mime"}}, "certifications": {"type": "array", "items": {"type": "string", "format": "uri"}, "minItems": 1}, "image_data": {"type": "string", "description": "Raw SVG image data, if you want to generate images on the fly (not recommended). Only use this if you're not including the image parameter.", "contentEncoding": "base64", "contentMediaType": "image/svg+xml"}, "image": {"type": "string", "description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive.", "format": "uri"}, "external_url": {"type": "string", "description": "This is the URL that will appear below the asset's image on OpenSea and will allow users to leave OpenSea and view the item on your site.", "format": "uri"}, "attributes": {"type": "array", "description": "These are the attributes for the item, which will show up on the OpenSea page for the item. (see below)", "items": {"type": "object", "properties": {"trait_type": {"type": "string"}, "value": {"oneOf": [{"type": "string"}, {"type": "number"}]}, "display_type": {"type": "string"}}, "required": ["trait_type", "value"]}}, "animation_url": {"type": "string", "description": "Animation_url also supports HTML pages, allowing you to build rich experiences and interactive NFTs using JavaScript canvas, WebGL, and more. Scripts and relative paths within the HTML page are now supported. However, access to browser extensions is not supported.", "format": "uri"}, "name": {"type": "string", "description": "Identifies the asset to which this NFT represents"}, "description": {"type": "string", "description": "Describes the asset to which this NFT represents"}, "unitOfAccount": {"type": "string"}, "issuerName": {"type": "string"}, "namespace": {"type": "string"}}, "required": ["version", "attachments", "attributes"], "mime": {"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "/mime", "title": "A single generic attachment for documenting any asset", "type": "object", "properties": {"contentType": {"type": "string", "$comment": "valid mime type"}, "contentTransferEncoding": {"type": "string", "enum": ["BASE64", "QUOTED-PRINTABLE", "8BIT", "7BIT"]}, "subject": {"type": "string", "$comment": "utf-8"}, "body": {"type": "string", "$comment": "uri including dataurl"}, "ref": {"type": "string", "format": "uri"}}, "required": ["contentType", "subject"], "oneOf": [{"required": ["body"]}, {"required": ["ref"]}]}, "oneOf": [{"required": ["image"]}, {"required": ["image_data"]}]}

View File

@ -1,19 +0,0 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "/cic/voucher",
"title": "CIC voucher schema extensiom",
"type": "object",
"properties": {
"unitOfAccount": {
"type": "string"
},
"issuerName": {
"type": "string"
},
"namespace": {
"type": "string"
}
},
"require": ["unitOfAccount", "issuerName"]
}