Skip to content

Comments

Add a json based livr schema emitter#155

Open
swatkatz wants to merge 1 commit intoalloy-framework:mainfrom
swatkatz:feature/sample_livr
Open

Add a json based livr schema emitter#155
swatkatz wants to merge 1 commit intoalloy-framework:mainfrom
swatkatz:feature/sample_livr

Conversation

@swatkatz
Copy link
Contributor

@swatkatz swatkatz commented May 8, 2025

We add a new sample program to generate a LIVR compatible JSON schema using the json-alloy framework. This is to add to the existing samples.

The code works by running: node dist/src/index.js assuming that the you are running pnpm watch inside of alloy/samples/livr-emitter

address changes to lock file
@swatkatz swatkatz force-pushed the feature/sample_livr branch from 127fb2e to 853401b Compare May 8, 2025 16:47
// --- Common rules ---
export interface RequiredRule extends LIVRRuleBase {
rule: "required";
error_code?: "REQUIRED";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we create an enum to represent the error codes? Many of them are used in multiple places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants