Skip to content

Commit 91c8ad4

Browse files
authored
Fix defaultNonNullable behavior (#1445)
1 parent a9f54ae commit 91c8ad4

File tree

67 files changed

+18423
-4430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+18423
-4430
lines changed

packages/openapi-typescript/examples/digital-ocean-api.ts

Lines changed: 275 additions & 32 deletions
Large diffs are not rendered by default.

packages/openapi-typescript/examples/digital-ocean-api/DigitalOcean-public.v2.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,18 @@ paths:
12711271
get:
12721272
$ref: 'resources/monitoring/monitoring_get_dropletMemoryAvailableMetrics.yml'
12731273

1274+
/v2/monitoring/metrics/apps/memory_percentage:
1275+
get:
1276+
$ref: 'resources/monitoring/monitoring_get_appMemoryPercentageMetrics.yml'
1277+
1278+
/v2/monitoring/metrics/apps/cpu_percentage:
1279+
get:
1280+
$ref: 'resources/monitoring/monitoring_get_appCPUPercentageMetrics.yml'
1281+
1282+
/v2/monitoring/metrics/apps/restart_count:
1283+
get:
1284+
$ref: 'resources/monitoring/monitoring_get_appRestartCountMetrics.yml'
1285+
12741286
/v2/projects:
12751287
get:
12761288
$ref: 'resources/projects/projects_list.yml'

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_functions_spec.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22

33
type: object
44
properties:
5+
56
cors:
6-
$ref: apps_cors_policy.yml
7+
allOf:
8+
- $ref: apps_cors_policy.yml
9+
- description: (Deprecated - Use Ingress Rules instead).
10+
- deprecated: true
711

812
routes:
913
type: array
10-
description: A list of HTTP routes that should be routed to this component.
14+
description: (Deprecated - Use Ingress Rules instead). A list of HTTP routes that should be routed to this component.
15+
deprecated: true
1116
items:
1217
$ref: app_route_spec.yml
1318

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_route_spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ title: A criterion for routing HTTP traffic to a component.
22
type: object
33
properties:
44
path:
5-
description: An HTTP path prefix. Paths must start with / and must be unique across
5+
description: (Deprecated - Use Ingress Rules instead). An HTTP path prefix. Paths must start with / and must be unique across
66
all components within an app.
77
type: string
88
example: /api

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_service_spec.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ allOf:
55
- type: object
66
properties:
77
cors:
8-
$ref: apps_cors_policy.yml
8+
allOf:
9+
- $ref: apps_cors_policy.yml
10+
- description: (Deprecated - Use Ingress Rules instead).
11+
- deprecated: true
912

1013
health_check:
1114
$ref: app_service_spec_health_check.yml
@@ -32,7 +35,8 @@ allOf:
3235

3336
routes:
3437
type: array
35-
description: A list of HTTP routes that should be routed to this component.
38+
description: (Deprecated - Use Ingress Rules instead). A list of HTTP routes that should be routed to this component.
39+
deprecated: true
3640
items:
3741
$ref: app_route_spec.yml
3842

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_static_site_spec.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ allOf:
3333
example: dist/
3434

3535
cors:
36-
$ref: apps_cors_policy.yml
36+
allOf:
37+
- $ref: apps_cors_policy.yml
38+
- description: (Deprecated - Use Ingress Rules instead).
39+
- deprecated: true
3740

3841
routes:
3942
type: array
4043
items:
4144
$ref: app_route_spec.yml
42-
description: A list of HTTP routes that should be routed to this component.
45+
description: (Deprecated - Use Ingress Rules instead). A list of HTTP routes that should be routed to this component.
46+
deprecated: true
4347

4448
required:
4549
- name

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/apps_image_source_spec.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ properties:
2222

2323
tag:
2424
type: string
25-
description: The repository tag. Defaults to `latest` if not provided.
25+
description: The repository tag. Defaults to `latest` if not provided and no digest is provided. Cannot be specified if digest is provided.
2626
example: latest
2727
default: latest
28+
29+
digest:
30+
type: string
31+
description: The image digest. Cannot be specified if tag is provided.
32+
example: sha256:795e91610e9cccb7bb80893fbabf9c808df7d52ae1f39cd1158618b4a33041ac
33+
34+
deploy_on_push:
35+
type: object
36+
properties:
37+
enabled:
38+
type: boolean
39+
description: Whether to automatically deploy new images. Can only be used for images hosted in DOCR and can only be used with an image tag, not a specific digest.
40+
example: true

packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_user.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,11 @@ requestBody:
6060
name: app-03
6161
settings:
6262
acl:
63-
- id: acl128aaaa99239
64-
permission: produceconsume
63+
- permission: produceconsume
6564
topic: customer-events
66-
- id: acl293098flskdf
67-
permission: produce
65+
- permission: produce
6866
topic: customer-events.*
69-
- id: acl128ajei20123
70-
permission: consume
67+
- permission: consume
7168
topic: customer-events
7269

7370
responses:

packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_cluster.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ requestBody:
4545
version: "14"
4646
region: nyc3
4747
size: db-s-2vcpu-4gb
48+
storage_size_mib: 61440
4849
num_nodes: 2
4950
tags:
5051
- production
@@ -57,6 +58,7 @@ requestBody:
5758
region: nyc3
5859
size: db-s-2vcpu-4gb
5960
num_nodes: 2
61+
storage_size_mib: 61440
6062
tags:
6163
- production
6264
rules:

packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_kafka_topic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ responses:
5151

5252
x-codeSamples:
5353
- $ref: 'examples/curl/databases_create_topic.yml'
54+
- $ref: 'examples/go/databases_create_topic.yml'
5455

5556
security:
5657
- bearer_auth:

0 commit comments

Comments
 (0)