mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: avoid 400s for unknown request body fields (#1737)
This commit is contained in:
parent
7ee8892704
commit
5bae11a3fb
@ -4,7 +4,6 @@ import { ApiTokenType } from '../../types/models/api-token';
|
||||
export const createApiTokenSchema = {
|
||||
$id: '#/components/schemas/createApiTokenSchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
required: ['username', 'type'],
|
||||
properties: {
|
||||
secret: {
|
||||
|
@ -5,7 +5,6 @@ import { constraintSchema } from './constraint-schema';
|
||||
export const createStrategySchema = {
|
||||
$id: '#/components/schemas/createStrategySchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
required: ['name'],
|
||||
properties: {
|
||||
name: {
|
||||
|
@ -3,7 +3,6 @@ import { FromSchema } from 'json-schema-to-ts';
|
||||
export const updateApiTokenSchema = {
|
||||
$id: '#/components/schemas/updateApiTokenSchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
required: ['expiresAt'],
|
||||
properties: {
|
||||
expiresAt: {
|
||||
|
@ -3,7 +3,6 @@ import { FromSchema } from 'json-schema-to-ts';
|
||||
export const updateTagTypeSchema = {
|
||||
$id: '#/components/schemas/updateTagTypeSchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
properties: {
|
||||
description: {
|
||||
type: 'string',
|
||||
|
@ -4,7 +4,6 @@ import { legalValueSchema } from './legal-value-schema';
|
||||
export const upsertContextFieldSchema = {
|
||||
$id: '#/components/schemas/upsertContextFieldSchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
required: ['name'],
|
||||
properties: {
|
||||
name: {
|
||||
|
@ -4,7 +4,6 @@ import { tagTypeSchema } from './tag-type-schema';
|
||||
export const validateTagTypeSchema = {
|
||||
$id: '#/components/schemas/validateTagTypeSchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
required: ['valid', 'tagType'],
|
||||
properties: {
|
||||
valid: {
|
||||
|
@ -261,7 +261,6 @@ Object {
|
||||
"type": "array",
|
||||
},
|
||||
"createApiTokenSchema": Object {
|
||||
"additionalProperties": false,
|
||||
"properties": Object {
|
||||
"environment": Object {
|
||||
"type": "string",
|
||||
@ -318,7 +317,6 @@ Object {
|
||||
"type": "object",
|
||||
},
|
||||
"createStrategySchema": Object {
|
||||
"additionalProperties": false,
|
||||
"properties": Object {
|
||||
"constraints": Object {
|
||||
"items": Object {
|
||||
@ -1101,7 +1099,6 @@ Object {
|
||||
"type": "object",
|
||||
},
|
||||
"updateApiTokenSchema": Object {
|
||||
"additionalProperties": false,
|
||||
"properties": Object {
|
||||
"expiresAt": Object {
|
||||
"format": "date-time",
|
||||
@ -1175,7 +1172,6 @@ Object {
|
||||
"type": "object",
|
||||
},
|
||||
"updateTagTypeSchema": Object {
|
||||
"additionalProperties": false,
|
||||
"properties": Object {
|
||||
"description": Object {
|
||||
"type": "string",
|
||||
@ -1187,7 +1183,6 @@ Object {
|
||||
"type": "object",
|
||||
},
|
||||
"upsertContextFieldSchema": Object {
|
||||
"additionalProperties": false,
|
||||
"properties": Object {
|
||||
"description": Object {
|
||||
"type": "string",
|
||||
@ -1214,7 +1209,6 @@ Object {
|
||||
"type": "object",
|
||||
},
|
||||
"validateTagTypeSchema": Object {
|
||||
"additionalProperties": false,
|
||||
"properties": Object {
|
||||
"tagType": Object {
|
||||
"$ref": "#/components/schemas/tagTypeSchema",
|
||||
|
Loading…
Reference in New Issue
Block a user