mirror of
https://github.com/LukeHagar/prettier-plugin-openapi.git
synced 2025-12-09 20:57:46 +00:00
Update keys.ts
This commit is contained in:
15
src/keys.ts
15
src/keys.ts
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user