1
0
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:
olav 2022-06-21 10:33:03 +02:00 committed by GitHub
parent 7ee8892704
commit 5bae11a3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 0 additions and 12 deletions

View File

@ -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: {

View File

@ -5,7 +5,6 @@ import { constraintSchema } from './constraint-schema';
export const createStrategySchema = {
$id: '#/components/schemas/createStrategySchema',
type: 'object',
additionalProperties: false,
required: ['name'],
properties: {
name: {

View File

@ -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: {

View File

@ -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',

View File

@ -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: {

View File

@ -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: {

View File

@ -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",