Skip to content

Commit

Permalink
feat: add schemas for registry customization (#84)
Browse files Browse the repository at this point in the history
* feat: add schemas for registry customization

* chore: hide more information

* test: add tests
  • Loading branch information
WillieRuemmele authored Apr 1, 2024
1 parent a1db98d commit 542b61d
Show file tree
Hide file tree
Showing 10 changed files with 942 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ jspm_packages/
# Eclipse
.project

# Webstorm
.idea

# MacOS folder atttribute tracking
**/.DS_Store
**/.DS_Store
12 changes: 12 additions & 0 deletions compiled/registryPreset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/registryPresets",
"definitions": {
"registryPresets": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
235 changes: 235 additions & 0 deletions compiled/registryVariants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/MetadataRegistry",
"definitions": {
"MetadataRegistry": {
"type": "object",
"properties": {
"types": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"directoryName": {
"type": "string"
},
"suffix": {
"type": "string"
},
"strictDirectoryName": {
"type": "boolean"
},
"ignoreParsedFullName": {
"type": "boolean"
},
"folderContentType": {
"type": "string"
},
"folderType": {
"type": "string"
},
"xmlElementName": {
"type": "string"
},
"uniqueIdElement": {
"type": "string"
},
"isAddressable": {
"type": "boolean"
},
"unaddressableWithoutParent": {
"type": "boolean"
},
"supportsWildcardAndName": {
"type": "boolean"
},
"supportsPartialDelete": {
"type": "boolean"
},
"aliasFor": {
"type": "string"
},
"children": {
"type": "object",
"properties": {
"types": {
"$ref": "#/definitions/alias-1220290513-257-1164-1220290513-0-1228"
},
"suffixes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"directories": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": ["types", "suffixes"],
"additionalProperties": false
},
"strategies": {
"type": "object",
"properties": {
"adapter": {
"type": "string",
"enum": [
"mixedContent",
"matchingContentFile",
"decomposed",
"bundle",
"default"
]
},
"transformer": {
"type": "string",
"enum": ["decomposed", "staticResource", "standard"]
},
"decomposition": {
"type": "string",
"enum": ["topLevel", "folderPerType"]
}
},
"required": ["adapter"],
"additionalProperties": false
}
},
"required": ["id", "name", "directoryName"],
"additionalProperties": false
}
},
"suffixes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"strictDirectoryNames": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"childTypes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": ["types", "suffixes", "strictDirectoryNames", "childTypes"],
"additionalProperties": false
},
"alias-1220290513-257-1164-1220290513-0-1228": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"directoryName": {
"type": "string"
},
"suffix": {
"type": "string"
},
"strictDirectoryName": {
"type": "boolean"
},
"ignoreParsedFullName": {
"type": "boolean"
},
"folderContentType": {
"type": "string"
},
"folderType": {
"type": "string"
},
"xmlElementName": {
"type": "string"
},
"uniqueIdElement": {
"type": "string"
},
"isAddressable": {
"type": "boolean"
},
"unaddressableWithoutParent": {
"type": "boolean"
},
"supportsWildcardAndName": {
"type": "boolean"
},
"supportsPartialDelete": {
"type": "boolean"
},
"aliasFor": {
"type": "string"
},
"children": {
"type": "object",
"properties": {
"types": {
"$ref": "#/definitions/alias-1220290513-257-1164-1220290513-0-1228"
},
"suffixes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"directories": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": ["types", "suffixes"],
"additionalProperties": false
},
"strategies": {
"type": "object",
"properties": {
"adapter": {
"type": "string",
"enum": [
"mixedContent",
"matchingContentFile",
"decomposed",
"bundle",
"default"
]
},
"transformer": {
"type": "string",
"enum": ["decomposed", "staticResource", "standard"]
},
"decomposition": {
"type": "string",
"enum": ["topLevel", "folderPerType"]
}
},
"required": ["adapter"],
"additionalProperties": false
}
},
"required": ["id", "name", "directoryName"],
"additionalProperties": false
}
}
}
}
Loading

0 comments on commit 542b61d

Please sign in to comment.