openapi: limit string lengths for user facing objects

This commit is contained in:
Quaternions 2024-12-09 21:48:52 -08:00
parent 04520edca7
commit 3cc1c8a5d9

View File

@ -366,6 +366,8 @@ paths:
required: true required: true
schema: schema:
type: string type: string
minLength: 16
maxLength: 16
responses: responses:
"200": "200":
description: Successful response description: Successful response
@ -588,8 +590,10 @@ components:
format: int64 format: int64
DisplayName: DisplayName:
type: string type: string
maxLength: 128
Creator: Creator:
type: string type: string
maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: int32
@ -626,8 +630,10 @@ components:
format: int64 format: int64
DisplayName: DisplayName:
type: string type: string
maxLength: 128
Creator: Creator:
type: string type: string
maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: int32
@ -646,8 +652,10 @@ components:
properties: properties:
DisplayName: DisplayName:
type: string type: string
maxLength: 128
Creator: Creator:
type: string type: string
maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: int32
@ -673,8 +681,11 @@ components:
format: int64 format: int64
Hash: Hash:
type: string type: string
minLength: 16
maxLength: 16
Source: Source:
type: string type: string
maxLength: 1048576
SubmissionID: SubmissionID:
type: integer type: integer
format: int64 format: int64
@ -686,6 +697,7 @@ components:
properties: properties:
Source: Source:
type: string type: string
maxLength: 1048576
SubmissionID: SubmissionID:
type: integer type: integer
format: int64 format: int64
@ -699,6 +711,7 @@ components:
format: int64 format: int64
Source: Source:
type: string type: string
maxLength: 1048576
SubmissionID: SubmissionID:
type: integer type: integer
format: int64 format: int64
@ -715,6 +728,8 @@ components:
format: int64 format: int64
FromScriptHash: FromScriptHash:
type: string type: string
minLength: 16
maxLength: 16
ToScriptID: ToScriptID:
type: integer type: integer
format: int64 format: int64