Skip to content

Commit

Permalink
Handle ipinfo in addition to maxmind
Browse files Browse the repository at this point in the history
  • Loading branch information
joegallo committed Nov 18, 2024
1 parent a984d15 commit 9f1d783
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
9 changes: 7 additions & 2 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 24 additions & 4 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions specification/ingest/_types/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ export class DatabaseConfiguration {
/** The provider-assigned name of the IP geolocation database to download. */
name: Name
/** The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading.
* At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured.
* At present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured.
* A provider (either maxmind or ipinfo) must be specified.
*/
maxmind: Maxmind
maxmind?: Maxmind
ipinfo?: Ipinfo
}

export class Maxmind {
account_id: Id
}

export class Ipinfo {}

0 comments on commit 9f1d783

Please sign in to comment.