diff --git a/arkindex/schema.yml b/arkindex/schema.yml index 912e108c12c4575a3509b522fc29f8948ab5cb2a..3e39cc45461833e92753fdb93a95272fdff672f6 100644 --- a/arkindex/schema.yml +++ b/arkindex/schema.yml @@ -1124,6 +1124,7 @@ paths: - source - ml_class - state + readOnly: true type: array corpus: properties: @@ -1141,6 +1142,7 @@ paths: type: object id: format: uuid + readOnly: true type: string metadata: readOnly: true @@ -1210,7 +1212,6 @@ paths: type: object required: - name - - classifications description: '' security: [] tags: @@ -1230,68 +1231,6 @@ paths: application/json: schema: properties: - classifications: - items: - properties: - confidence: - nullable: true - type: number - id: - format: uuid - type: string - ml_class: - properties: - id: - format: uuid - type: string - name: - maxLength: 100 - type: string - required: - - name - type: object - source: - properties: - id: - format: uuid - type: string - internal: - type: boolean - name: - maxLength: 100 - type: string - revision: - maxLength: 100 - type: string - slug: - maxLength: 100 - type: string - type: - enum: - - classifier - - recognizer - - ner - - dla - required: - - type - - slug - - name - - revision - - internal - type: object - state: - enum: - - pending - - validated - - rejected - required: - - source - - ml_class - - state - type: array - id: - format: uuid - type: string name: maxLength: 250 type: string @@ -1360,6 +1299,7 @@ paths: - source - ml_class - state + readOnly: true type: array corpus: properties: @@ -1377,6 +1317,7 @@ paths: type: object id: format: uuid + readOnly: true type: string metadata: readOnly: true @@ -1446,7 +1387,6 @@ paths: type: object required: - name - - classifications description: '' tags: - elements @@ -1465,74 +1405,11 @@ paths: application/json: schema: properties: - classifications: - items: - properties: - confidence: - nullable: true - type: number - id: - format: uuid - type: string - ml_class: - properties: - id: - format: uuid - type: string - name: - maxLength: 100 - type: string - required: - - name - type: object - source: - properties: - id: - format: uuid - type: string - internal: - type: boolean - name: - maxLength: 100 - type: string - revision: - maxLength: 100 - type: string - slug: - maxLength: 100 - type: string - type: - enum: - - classifier - - recognizer - - ner - - dla - required: - - type - - slug - - name - - revision - - internal - type: object - state: - enum: - - pending - - validated - - rejected - required: - - source - - ml_class - - state - type: array - id: - format: uuid - type: string name: maxLength: 250 type: string required: - name - - classifications x-name: body responses: '200': @@ -1598,6 +1475,7 @@ paths: - source - ml_class - state + readOnly: true type: array corpus: properties: @@ -1615,6 +1493,7 @@ paths: type: object id: format: uuid + readOnly: true type: string metadata: readOnly: true @@ -1684,7 +1563,6 @@ paths: type: object required: - name - - classifications description: '' tags: - elements @@ -2963,6 +2841,7 @@ paths: type: object id: format: uuid + readOnly: true type: string name: maxLength: 250 @@ -3370,6 +3249,7 @@ paths: type: object id: format: uuid + readOnly: true type: string name: maxLength: 250 @@ -3532,6 +3412,7 @@ paths: type: object id: format: uuid + readOnly: true type: string name: maxLength: 250 @@ -3769,6 +3650,7 @@ paths: type: object id: format: uuid + readOnly: true type: string name: maxLength: 250 @@ -7243,6 +7125,7 @@ paths: type: object id: format: uuid + readOnly: true type: string name: maxLength: 250 @@ -7741,6 +7624,7 @@ paths: type: object id: format: uuid + readOnly: true type: string name: maxLength: 250