https://www.ory.sh/ logo
w

wide-butcher-30761

02/03/2022, 7:34 PM
Has anyone found it useful to work with the identity schema directly in their implementing applications? It seems like a well defined document that could be leveraged in client library implementations. Maybe help the developer more easily map the identity to their internal model? Iā€™m working on a Devise / Warden authentication strategy in Ruby now and Iā€™m exploring my options.
b

bulky-architect-22083

02/03/2022, 11:01 PM
I generate Go types and TypeScript types directly from the JSON schema to use in my applications. Does this count?
šŸ‘ 1
w

wide-butcher-30761

02/03/2022, 11:03 PM
@User Absolutely it does!
b

bulky-architect-22083

02/03/2022, 11:04 PM
Thanks. This is my ugly make target for generating the types. Hope it helps šŸ™
Since I find handling JSON a bit unwieldy, I write the schema in YAML, convert that to JSON, and then convert the JSON to Go and TS types šŸ™‚
w

wide-butcher-30761

02/03/2022, 11:05 PM
Thank you. That is helpful.
I like that. I already write a lot of yaml for kubernetes as it is anyway.
šŸ‘ 1
b

bulky-architect-22083

02/03/2022, 11:07 PM
The YAML file link for your reference: https://github.com/atreya2011/go-kratos-test/blob/main/identity-schemas/service/person.schema.yaml šŸ™‡ā€ā™‚ļø
w

wide-butcher-30761

02/03/2022, 11:08 PM
gratitude thank you
šŸ‘ 1
3 Views