Skip to content

Commit

Permalink
feat: use datacenter instead of the wrong dataCenter
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `IpInfo` field `dataCenter` renamed to `datacenter`
  • Loading branch information
ilfa committed Jan 10, 2024
1 parent 035024d commit 4d294cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
18 changes: 0 additions & 18 deletions resources/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4320,22 +4320,8 @@ components:
- asn
- network
title: ASN
DataCenterInfo:
type: object
additionalProperties: false
properties:
result:
type: boolean
name:
type: string
example: DediPath
required:
- result
title: DataCenterInfo
DataCenter:
type: object
deprecated: true
description: '`dataCenter` is deprecated in favor of `datacenter`'
additionalProperties: false
properties:
result:
Expand Down Expand Up @@ -4878,8 +4864,6 @@ components:
asn:
$ref: '#/components/schemas/ASN'
datacenter:
$ref: '#/components/schemas/DataCenterInfo'
dataCenter:
$ref: '#/components/schemas/DataCenter'
v6:
type: object
Expand All @@ -4894,8 +4878,6 @@ components:
asn:
$ref: '#/components/schemas/ASN'
datacenter:
$ref: '#/components/schemas/DataCenterInfo'
dataCenter:
$ref: '#/components/schemas/DataCenter'
IpBlockListResult:
type: object
Expand Down
18 changes: 3 additions & 15 deletions src/generatedApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,17 +412,7 @@ export interface components {
/** @example COMCAST-7922 */
name?: string;
};
/** DataCenterInfo */
DataCenterInfo: {
result: boolean;
/** @example DediPath */
name?: string;
};
/**
* DataCenter
* @deprecated
* @description `dataCenter` is deprecated in favor of `datacenter`
*/
/** DataCenter */
DataCenter: {
result: boolean;
/** @example DediPath */
Expand Down Expand Up @@ -789,8 +779,7 @@ export interface components {
address?: string;
geolocation?: components['schemas']['IPLocation'];
asn?: components['schemas']['ASN'];
datacenter?: components['schemas']['DataCenterInfo'];
dataCenter?: components['schemas']['DataCenter'];
datacenter?: components['schemas']['DataCenter'];
};
v6?: {
/**
Expand All @@ -800,8 +789,7 @@ export interface components {
address?: string;
geolocation?: components['schemas']['IPLocation'];
asn?: components['schemas']['ASN'];
datacenter?: components['schemas']['DataCenterInfo'];
dataCenter?: components['schemas']['DataCenter'];
datacenter?: components['schemas']['DataCenter'];
};
};
IpBlockListResult: {
Expand Down

0 comments on commit 4d294cb

Please sign in to comment.