Sourcemeta projects are dual licensed. Anyone may use them under their open-source license, and Sourcemeta additionally offers them under commercial terms, including by selling exceptions to the open-source license. To make that possible, contributors license their contributions to Sourcemeta under the Contribution License contained in the Sourcemeta contributing guidelines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "$ref": "https://movielabs.com/omc/json/schema/v2.6#/$defs/MediaCreationContext/properties/Character/properties/characterType", | |
| "$defs": { | |
| "schema": { | |
| "$schema": "https://json-schema.org/draft/2019-09/schema", | |
| "$id": "https://movielabs.com/omc/json/schema/v2.6", | |
| "title": "OMC-JSON Schema v2.6", | |
| "$comment": "Copyright 2021-2024 Motion Picture Laboratories, Inc.\nSPDX-License-Identifier: APACHE-2.0", | |
| "oneOf": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import sys | |
| from collections import defaultdict | |
| def split_and_group_errors(input_path): | |
| # Regex to detect the start of an error block and capture the diagnostic name | |
| start_pattern = re.compile( | |
| r'^(?P<file>.+?):(?P<line>\d+):(?P<col>\d+): error: .* \[(?P<diag>[^\]]+)\]' | |
| ) | |
| groups = defaultdict(list) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": true, | |
| "strategy": true, | |
| "@extra_comment": "here" | |
| } |
To bundle, run the following from the root of https://github.com/krakend/krakend-schema:
$ jsonschema bundle krakend.json --resolve v2.6Gists don't let me upload binary files directly. To get the output.bin binary file, run:
echo "0x03 0x01 0x01 0x66 0x6f 0x6f 0xfa 0x01" | xxd -r > output.bin