Skip to content

Commit

Permalink
fix: avoid 400s for unknown request body fields (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
olav committed Jun 21, 2022
1 parent 7ee8892 commit 5bae11a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/lib/openapi/spec/create-api-token-schema.ts
Expand Up @@ -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: {
Expand Down
1 change: 0 additions & 1 deletion src/lib/openapi/spec/create-strategy-schema.ts
Expand Up @@ -5,7 +5,6 @@ import { constraintSchema } from './constraint-schema';
export const createStrategySchema = {
$id: '#/components/schemas/createStrategySchema',
type: 'object',
additionalProperties: false,
required: ['name'],
properties: {
name: {
Expand Down
1 change: 0 additions & 1 deletion src/lib/openapi/spec/update-api-token-schema.ts
Expand Up @@ -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: {
Expand Down
1 change: 0 additions & 1 deletion src/lib/openapi/spec/update-tag-type-schema.ts
Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion src/lib/openapi/spec/upsert-context-field-schema.ts
Expand Up @@ -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: {
Expand Down
1 change: 0 additions & 1 deletion src/lib/openapi/spec/validate-tag-type-schema.ts
Expand Up @@ -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: {
Expand Down
Expand Up @@ -261,7 +261,6 @@ Object {
"type": "array",
},
"createApiTokenSchema": Object {
"additionalProperties": false,
"properties": Object {
"environment": Object {
"type": "string",
Expand Down Expand Up @@ -318,7 +317,6 @@ Object {
"type": "object",
},
"createStrategySchema": Object {
"additionalProperties": false,
"properties": Object {
"constraints": Object {
"items": Object {
Expand Down Expand Up @@ -1101,7 +1099,6 @@ Object {
"type": "object",
},
"updateApiTokenSchema": Object {
"additionalProperties": false,
"properties": Object {
"expiresAt": Object {
"format": "date-time",
Expand Down Expand Up @@ -1175,7 +1172,6 @@ Object {
"type": "object",
},
"updateTagTypeSchema": Object {
"additionalProperties": false,
"properties": Object {
"description": Object {
"type": "string",
Expand All @@ -1187,7 +1183,6 @@ Object {
"type": "object",
},
"upsertContextFieldSchema": Object {
"additionalProperties": false,
"properties": Object {
"description": Object {
"type": "string",
Expand All @@ -1214,7 +1209,6 @@ Object {
"type": "object",
},
"validateTagTypeSchema": Object {
"additionalProperties": false,
"properties": Object {
"tagType": Object {
"$ref": "#/components/schemas/tagTypeSchema",
Expand Down

0 comments on commit 5bae11a

Please sign in to comment.