Update keys.ts

This commit is contained in:
Luke Hagar
2025-10-31 16:32:22 -05:00
committed by GitHub
parent 4e918ea5f0
commit 41c5732a80

View File

@@ -156,6 +156,9 @@ export const OperationKeys = [
] as const; ] as const;
export const ParameterKeys = [ export const ParameterKeys = [
// $ref should always be at the top, because when its included there are at most 2 other keys that are present.
'$ref',
// Important short info at a glance. // Important short info at a glance.
'name', 'name',
'description', 'description',
@@ -375,6 +378,9 @@ export const SchemaKeys = [
] as const; ] as const;
export const ResponseKeys = [ export const ResponseKeys = [
// $ref should always be at the top, because when its included there are at most 2 other keys that are present.
'$ref',
// Description is a good at a glance key, and stays at the top. // Description is a good at a glance key, and stays at the top.
'description', 'description',
@@ -509,6 +515,9 @@ export const PathItemKeys = [
// Simple/short first // Simple/short first
export const RequestBodyKeys = [ export const RequestBodyKeys = [
// $ref should always be at the top, because when its included there are at most 2 other keys that are present.
'$ref',
'description', 'description',
'required', 'required',
'content', 'content',
@@ -537,6 +546,9 @@ export const EncodingKeys = [
] as const; ] as const;
export const HeaderKeys = [ export const HeaderKeys = [
// $ref should always be at the top, because when its included there are at most 2 other keys that are present.
'$ref',
// Description is a good at a glance key, and stays at the top. // Description is a good at a glance key, and stays at the top.
'description', 'description',
'required', 'required',
@@ -575,6 +587,9 @@ export const HeaderKeys = [
] as const; ] as const;
export const LinkKeys = [ export const LinkKeys = [
// $ref should always be at the top, because when its included there are at most 2 other keys that are present.
'$ref',
'operationId', 'operationId',
'description', 'description',
'server', 'server',