Skip to content

Adding ObjectRef to custom resources #1310

Answered by clux
zlepper asked this question in Q&A
Discussion options

You must be logged in to vote

oh, interesting. yeah. you are nesting an ObjectRef (which does not derive JsonSchema) inside your struct and thus it's not even possible to derive JsonSchema for PgBouncerDatabaseSpec

the annoying part is that the more schematically correct ObjectReference which we normally generate from Resource::object_ref does implement this 🙃

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@zlepper
Comment options

@clux
Comment options

clux Oct 12, 2023
Maintainer

Answer selected by zlepper
@clux
Comment options

clux Oct 12, 2023
Maintainer

@zlepper
Comment options

@clux
Comment options

clux Oct 12, 2023
Maintainer

@nightkr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants