Skip to content

Commit

Permalink
Fix JSON schema and validation (#24)
Browse files Browse the repository at this point in the history
* test: invalid json

* test: remove invalid json

* fix: schema URI

* fix: update json schema version

* fix: replace property_comment with comment

* fix: try keywording comment

* test: invalid json

* fix: remove invalid json file
  • Loading branch information
mamayer19 authored Dec 13, 2023
1 parent aa638be commit fe790ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/json-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
with:
base_dir: docs/tools/vdb_table/data
json_schema: docs/tools/vdb_table/data/vendor.schema.json
json_schema_version: "draft-2020-12"
14 changes: 7 additions & 7 deletions docs/tools/vdb_table/data/vendor.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "vdb_table/schema/vendor",
"type": "object",

Expand All @@ -10,14 +10,14 @@
"logo_url": { "type": "string" },
"point_of_contact_email": { "type": "string", "format": "email" },

"oss": { "allOf": [{"$ref": "#/$defs/feature"}], "property_comment": "Open source & free to self-host" },
"managed_cloud": { "allOf": [{"$ref": "#/$defs/feature"}], "property_comment": "Managed Cloud Offering" },
"disk_index": { "allOf": [{"$ref": "#/$defs/feature"}], "property_comment": "Disk-based Index" },
"oss": { "allOf": [{"$ref": "#/$defs/feature"}], "$comment": "Open source & free to self-host" },
"managed_cloud": { "allOf": [{"$ref": "#/$defs/feature"}], "$comment": "Managed Cloud Offering" },
"disk_index": { "allOf": [{"$ref": "#/$defs/feature"}], "$comment": "Disk-based Index" },

"doc_size_limit": { "allOf": [{"$ref": "#/$defs/integerWithUnits"}], "property_comment": "Metadata/Doc size limit" },
"vector_dimensions_max": { "allOf": [{"$ref": "#/$defs/integer"}], "property_comment": "Maximum integer of vector dimensions" },
"doc_size_limit": { "allOf": [{"$ref": "#/$defs/integerWithUnits"}], "$comment": "Metadata/Doc size limit" },
"vector_dimensions_max": { "allOf": [{"$ref": "#/$defs/integer"}], "$comment": "Maximum integer of vector dimensions" },

"license": { "allOf": [{"$ref": "#/$defs/string"}], "property_comment": "OSS license for the core product" }
"license": { "allOf": [{"$ref": "#/$defs/string"}], "$comment": "OSS license for the core product" }
},

"$defs": {
Expand Down

0 comments on commit fe790ed

Please sign in to comment.