Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Tap30/web-components
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins committed Jan 5, 2025
2 parents db448bd + e61c35d commit 9e2809f
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions internals/doc-helpers/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"requiredElements": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(\\/|(\\.\\.?\\/)+)?([a-zA-Z0-9-_]+\\/)*[a-zA-Z0-9-_]+\\.html$"
}
},
"properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"defaultValue": { "type": ["string", "boolean", "number"] },
"mutators": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(#|props#)[a-zA-Z][\\w-]*$"
}
}
},
"required": ["name"]
}
},
"slots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"path": { "type": "string", "pattern": "^(\\/|(\\.\\.?\\/)+)?([a-zA-Z0-9-_]+\\/)*[a-zA-Z0-9-_]+\\.html$" },
"mutates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"target": { "type": "string", "pattern": "^props#[a-zA-Z][\\w-]*$" },
"value": { "type": ["string", "number", "boolean", "object", "null"] }
},
"required": ["target", "value"]
}
}
},
"required": ["name"]
}
}
},
"required": ["name", "options"]
}
}
},
"required": ["properties", "slots"]
}

0 comments on commit 9e2809f

Please sign in to comment.