Skip to content

Commit

Permalink
feat: support JSON schemas in the FillEntityDefaults function
Browse files Browse the repository at this point in the history
FillEntityDefaults can be used to inject Kong entity defaults
into a Kong entity struct. This function achieves this by getting
entity schemas from the Admin API, flattening the returned schemas
and merging these with the input schemas.

Kong CP only works with Lua schemas, while Konnect also supports
JSON schemas.

This commit adds support to filling entity defaults from JSON schemas.
  • Loading branch information
GGabriele committed Oct 24, 2022
1 parent 80fea05 commit 68057cc
Show file tree
Hide file tree
Showing 7 changed files with 2,504 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Table of Contents

- [Unreleased](#Unreleased)
- [v0.33.0](#v0330)
- [v0.32.0](#v0320)
- [v0.31.1](#v0311)
Expand Down Expand Up @@ -41,6 +42,13 @@
- [0.2.0](#020)
- [0.1.0](#010)

## [Unreleased]

> Release date: TBD
- Add support to Kong Vaults
[#224](https://github.com/Kong/go-kong/pull/224)

## [v0.33.0]

> Release date: 2022/10/05
Expand Down Expand Up @@ -619,6 +627,7 @@ authentication credentials in Kong.
releases of Kong since every release of Kong is introducing breaking changes
to the Admin API.

[Unreleased]: https://github.com/Kong/go-kong/compare/v0.33.0...Unreleased
[v0.33.0]: https://github.com/Kong/go-kong/compare/v0.32.0...v0.33.0
[v0.32.0]: https://github.com/Kong/go-kong/compare/v0.31.1...v0.32.0
[v0.31.1]: https://github.com/Kong/go-kong/compare/v0.31.0...v0.31.1
Expand Down
Loading

0 comments on commit 68057cc

Please sign in to comment.