Skip to content

Commit

Permalink
React to "Fix: Inline enums properties with default values"
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder committed Feb 6, 2024
1 parent bd767dd commit 1c4be5e
Show file tree
Hide file tree
Showing 13 changed files with 936 additions and 554 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3136,9 +3136,47 @@
"description": "An object representing the location and content of a table cell.",
"properties": {
"kind": {
"$ref": "#/definitions/DocumentTableCellKind",
"type": "string",
"description": "Table cell kind.",
"default": "content"
"default": "content",
"enum": [
"content",
"rowHeader",
"columnHeader",
"stubHead",
"description"
],
"x-ms-enum": {
"name": "DocumentTableCellKind",
"modelAsString": true,
"values": [
{
"name": "content",
"value": "content",
"description": "Contains the main content/data."
},
{
"name": "rowHeader",
"value": "rowHeader",
"description": "Describes the content of the row."
},
{
"name": "columnHeader",
"value": "columnHeader",
"description": "Describes the content of the column."
},
{
"name": "stubHead",
"value": "stubHead",
"description": "Describes the row headers, usually located at the top left corner of a table."
},
{
"name": "description",
"value": "description",
"description": "Describes the content in (parts of) the table."
}
]
}
},
"rowIndex": {
"type": "integer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1279,14 +1279,54 @@
"default": 1
},
"size": {
"$ref": "#/definitions/ImageSize",
"type": "string",
"description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.",
"default": "1024x1024"
"default": "1024x1024",
"enum": [
"256x256",
"512x512"
],
"x-ms-enum": {
"name": "ImageSize",
"modelAsString": true,
"values": [
{
"name": "size256x256",
"value": "256x256",
"description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models."
},
{
"name": "size512x512",
"value": "512x512",
"description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models."
}
]
}
},
"response_format": {
"$ref": "#/definitions/ImageGenerationResponseFormat",
"type": "string",
"description": "The format in which image generation response items should be presented.",
"default": "url",
"enum": [
"url",
"b64_json"
],
"x-ms-enum": {
"name": "ImageGenerationResponseFormat",
"modelAsString": true,
"values": [
{
"name": "url",
"value": "url",
"description": "Image generation response items should provide a URL from which the image may be retrieved."
},
{
"name": "base64",
"value": "b64_json",
"description": "Image generation response items should provide image data as a base64-encoded string."
}
]
},
"x-ms-client-name": "responseFormat"
},
"user": {
Expand All @@ -1298,30 +1338,6 @@
"prompt"
]
},
"ImageGenerationResponseFormat": {
"type": "string",
"description": "The format in which the generated images are returned.",
"enum": [
"url",
"b64_json"
],
"x-ms-enum": {
"name": "ImageGenerationResponseFormat",
"modelAsString": true,
"values": [
{
"name": "url",
"value": "url",
"description": "Image generation response items should provide a URL from which the image may be retrieved."
},
{
"name": "base64",
"value": "b64_json",
"description": "Image generation response items should provide image data as a base64-encoded string."
}
]
}
},
"ImageGenerations": {
"type": "object",
"description": "The result of a successful image generation operation.",
Expand All @@ -1344,30 +1360,6 @@
"created",
"data"
]
},
"ImageSize": {
"type": "string",
"description": "The desired size of generated images.",
"enum": [
"256x256",
"512x512"
],
"x-ms-enum": {
"name": "ImageSize",
"modelAsString": true,
"values": [
{
"name": "size256x256",
"value": "256x256",
"description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models."
},
{
"name": "size512x512",
"value": "512x512",
"description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models."
}
]
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1376,14 +1376,54 @@
"default": 1
},
"size": {
"$ref": "#/definitions/ImageSize",
"type": "string",
"description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.",
"default": "1024x1024"
"default": "1024x1024",
"enum": [
"256x256",
"512x512"
],
"x-ms-enum": {
"name": "ImageSize",
"modelAsString": true,
"values": [
{
"name": "size256x256",
"value": "256x256",
"description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models."
},
{
"name": "size512x512",
"value": "512x512",
"description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models."
}
]
}
},
"response_format": {
"$ref": "#/definitions/ImageGenerationResponseFormat",
"type": "string",
"description": "The format in which image generation response items should be presented.",
"default": "url",
"enum": [
"url",
"b64_json"
],
"x-ms-enum": {
"name": "ImageGenerationResponseFormat",
"modelAsString": true,
"values": [
{
"name": "url",
"value": "url",
"description": "Image generation response items should provide a URL from which the image may be retrieved."
},
{
"name": "base64",
"value": "b64_json",
"description": "Image generation response items should provide image data as a base64-encoded string."
}
]
},
"x-ms-client-name": "responseFormat"
},
"user": {
Expand All @@ -1395,30 +1435,6 @@
"prompt"
]
},
"ImageGenerationResponseFormat": {
"type": "string",
"description": "The format in which the generated images are returned.",
"enum": [
"url",
"b64_json"
],
"x-ms-enum": {
"name": "ImageGenerationResponseFormat",
"modelAsString": true,
"values": [
{
"name": "url",
"value": "url",
"description": "Image generation response items should provide a URL from which the image may be retrieved."
},
{
"name": "base64",
"value": "b64_json",
"description": "Image generation response items should provide image data as a base64-encoded string."
}
]
}
},
"ImageGenerations": {
"type": "object",
"description": "The result of a successful image generation operation.",
Expand All @@ -1441,30 +1457,6 @@
"created",
"data"
]
},
"ImageSize": {
"type": "string",
"description": "The desired size of generated images.",
"enum": [
"256x256",
"512x512"
],
"x-ms-enum": {
"name": "ImageSize",
"modelAsString": true,
"values": [
{
"name": "size256x256",
"value": "256x256",
"description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models."
},
{
"name": "size512x512",
"value": "512x512",
"description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models."
}
]
}
}
},
"parameters": {
Expand Down
Loading

0 comments on commit 1c4be5e

Please sign in to comment.