mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: avoid 400s for unknown request body fields (#1737)
This commit is contained in:
parent
12fa0b8231
commit
eccb128933
@ -5,7 +5,6 @@ import { constraintSchema } from './constraint-schema';
|
|||||||
export const createStrategySchema = {
|
export const createStrategySchema = {
|
||||||
$id: '#/components/schemas/createStrategySchema',
|
$id: '#/components/schemas/createStrategySchema',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
additionalProperties: false,
|
|
||||||
required: ['name'],
|
required: ['name'],
|
||||||
properties: {
|
properties: {
|
||||||
name: {
|
name: {
|
||||||
|
@ -3,7 +3,6 @@ import { FromSchema } from 'json-schema-to-ts';
|
|||||||
export const updateTagTypeSchema = {
|
export const updateTagTypeSchema = {
|
||||||
$id: '#/components/schemas/updateTagTypeSchema',
|
$id: '#/components/schemas/updateTagTypeSchema',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
additionalProperties: false,
|
|
||||||
properties: {
|
properties: {
|
||||||
description: {
|
description: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -4,7 +4,6 @@ import { tagTypeSchema } from './tag-type-schema';
|
|||||||
export const validateTagTypeSchema = {
|
export const validateTagTypeSchema = {
|
||||||
$id: '#/components/schemas/validateTagTypeSchema',
|
$id: '#/components/schemas/validateTagTypeSchema',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
additionalProperties: false,
|
|
||||||
required: ['valid', 'tagType'],
|
required: ['valid', 'tagType'],
|
||||||
properties: {
|
properties: {
|
||||||
valid: {
|
valid: {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user