Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
fix(schema): fix schema inconsistent naming (#23)
Browse files Browse the repository at this point in the history
Because

- `boundingBox` has been renamed to `bounding_box` to be consistent with
gRPC naming convention

This commit

- fix the inconsistency
- rename file `shared_schema.json` to `schema.json`
- close instill-ai/community#470
  • Loading branch information
pinglin authored Nov 2, 2023
1 parent 0bcb5ec commit dd7aa52
Showing 1 changed file with 57 additions and 15 deletions.
72 changes: 57 additions & 15 deletions shared_schema.json → schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
"instillFormat": "object",
"description": "The detected bounding box in (left, top, width, height) format.",
"additionalProperties": false,
"required": ["left", "top", "width", "height"],
"required": [
"left",
"top",
"width",
"height"
],
"properties": {
"left": {
"title": "Left",
Expand Down Expand Up @@ -68,7 +73,10 @@
"type": "object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["category", "score"],
"required": [
"category",
"score"
],
"properties": {
"category": {
"title": "Category",
Expand All @@ -90,7 +98,9 @@
"type": "object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["objects"],
"required": [
"objects"
],
"properties": {
"objects": {
"title": "Objects",
Expand All @@ -103,7 +113,11 @@
"title": "Object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["bounding_box", "category", "score"],
"required": [
"bounding_box",
"category",
"score"
],
"properties": {
"bounding_box": {
"title": "Bounding box",
Expand Down Expand Up @@ -133,7 +147,9 @@
"type": "object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["objects"],
"required": [
"objects"
],
"properties": {
"objects": {
"title": "Objects",
Expand All @@ -145,7 +161,11 @@
"type": "object",
"title": "Object",
"instillFormat": "object",
"required": ["keypoints", "score", "bounding_box"],
"required": [
"keypoints",
"score",
"bounding_box"
],
"properties": {
"keypoints": {
"title": "Keypoints",
Expand All @@ -156,7 +176,11 @@
"type": "object",
"title": "Object",
"instillFormat": "object",
"required": ["x", "y", "v"],
"required": [
"x",
"y",
"v"
],
"instillUIOrder": 0,
"properties": {
"x": {
Expand Down Expand Up @@ -201,7 +225,9 @@
"type": "object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["objects"],
"required": [
"objects"
],
"properties": {
"objects": {
"title": "Objects",
Expand All @@ -213,9 +239,13 @@
"type": "object",
"title": "Object",
"instillFormat": "object",
"required": ["boundingBox", "text", "score"],
"required": [
"bounding_box",
"text",
"score"
],
"properties": {
"boundingBox": {
"bounding_box": {
"title": "Bounding Box",
"instillUIOrder": 0,
"$ref": "#/$defs/instill_types/bounding_box"
Expand Down Expand Up @@ -243,7 +273,9 @@
"type": "object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["objects"],
"required": [
"objects"
],
"properties": {
"objects": {
"title": "Objects",
Expand All @@ -255,7 +287,12 @@
"type": "object",
"title": "Object",
"instillFormat": "object",
"required": ["rle", "boundingBox", "category", "score"],
"required": [
"rle",
"bounding_box",
"category",
"score"
],
"properties": {
"rle": {
"title": "RLE",
Expand All @@ -264,7 +301,7 @@
"instillUIOrder": 0,
"instillFormat": "text"
},
"boundingBox": {
"bounding_box": {
"title": "Bounding Box",
"instillUIOrder": 1,
"$ref": "#/$defs/instill_types/bounding_box"
Expand Down Expand Up @@ -292,7 +329,9 @@
"type": "object",
"instillFormat": "object",
"additionalProperties": false,
"required": ["stuffs"],
"required": [
"stuffs"
],
"properties": {
"stuffs": {
"title": "Stuffs",
Expand All @@ -304,7 +343,10 @@
"type": "object",
"title": "Object",
"instillFormat": "object",
"required": ["rle", "category"],
"required": [
"rle",
"category"
],
"properties": {
"rle": {
"title": "RLE",
Expand Down

0 comments on commit dd7aa52

Please sign in to comment.