-
Notifications
You must be signed in to change notification settings - Fork 5
initial general schema added #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
0023e72
9be5104
0f28398
c007f1f
3e3919b
2e5cedb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "type": "object", | ||
| "properties": { | ||
| "nodes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "opcode": { | ||
| "type": "string", | ||
| "pattern": "^([a-zA-Z0-9\\_\\-\\.\\:])+$" | ||
| }, | ||
| "control": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| } | ||
| }, | ||
| "inputs": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| } | ||
| }, | ||
| "literals": { | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think other fields are required too.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have fixed all your requests. |
||
| "opcode" | ||
| ] | ||
| } | ||
| }, | ||
| "cfg": { | ||
| "type": "object", | ||
| "properties": { | ||
| "blocks": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "node": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| }, | ||
| "nodes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| } | ||
| }, | ||
| "successors": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "node", | ||
| "nodes", | ||
| "successors" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "blocks" | ||
| ] | ||
| }, | ||
| "dominance": { | ||
| "type": "object", | ||
| "properties": { | ||
| "blocks": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "node": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| }, | ||
| "parent": { | ||
| "oneOf": [ | ||
| { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| }, | ||
| { | ||
| "type": "null" | ||
| } | ||
| ] | ||
| }, | ||
| "frontier": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "node", | ||
| "parent", | ||
| "frontier" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "blocks" | ||
| ] | ||
| }, | ||
| "registers": { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we don't need this for now. Just removed it from design.md |
||
| "type": "object", | ||
| "properties": { | ||
| "nodes": { | ||
| "type": "array" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "nodes" | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!