Disable schemaType during schema edit (#2495)
* Disable schemaType during schema edit Update Schema API documentation closes #2197 * Apply suggestion Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
parent
fc946a1dd1
commit
6df2d0b602
2 changed files with 5 additions and 2 deletions
|
@ -898,7 +898,7 @@ paths:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- Schemas
|
- Schemas
|
||||||
summary: create a new subject schema
|
summary: create a new subject schema or update existing subject schema
|
||||||
operationId: createNewSchema
|
operationId: createNewSchema
|
||||||
parameters:
|
parameters:
|
||||||
- name: clusterName
|
- name: clusterName
|
||||||
|
@ -2594,6 +2594,7 @@ components:
|
||||||
|
|
||||||
NewSchemaSubject:
|
NewSchemaSubject:
|
||||||
type: object
|
type: object
|
||||||
|
description: should be set for creating/updating schema subject
|
||||||
properties:
|
properties:
|
||||||
subject:
|
subject:
|
||||||
type: string
|
type: string
|
||||||
|
@ -2601,6 +2602,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
schemaType:
|
schemaType:
|
||||||
$ref: '#/components/schemas/SchemaType'
|
$ref: '#/components/schemas/SchemaType'
|
||||||
|
description: upon updating a schema, the type of an existing schema can't be changed
|
||||||
required:
|
required:
|
||||||
- subject
|
- subject
|
||||||
- schema
|
- schema
|
||||||
|
@ -2624,6 +2626,7 @@ components:
|
||||||
|
|
||||||
SchemaType:
|
SchemaType:
|
||||||
type: string
|
type: string
|
||||||
|
description: upon updating a schema, the type of an existing schema can't be changed
|
||||||
enum:
|
enum:
|
||||||
- AVRO
|
- AVRO
|
||||||
- JSON
|
- JSON
|
||||||
|
|
|
@ -124,7 +124,7 @@ const Edit: React.FC = () => {
|
||||||
value={schema.schemaType}
|
value={schema.schemaType}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
minWidth="100%"
|
minWidth="100%"
|
||||||
disabled={isSubmitting}
|
disabled
|
||||||
options={Object.keys(SchemaType).map((type) => ({
|
options={Object.keys(SchemaType).map((type) => ({
|
||||||
value: type,
|
value: type,
|
||||||
label: type,
|
label: type,
|
||||||
|
|
Loading…
Add table
Reference in a new issue