Skip to content

semantic-core: alternative version using cue - #49

Draft
rarguelloF wants to merge 1 commit into
mainfrom
rarguelloF/cue
Draft

semantic-core: alternative version using cue#49
rarguelloF wants to merge 1 commit into
mainfrom
rarguelloF/cue

Conversation

@rarguelloF

@rarguelloF rarguelloF commented Jan 10, 2024

Copy link
Copy Markdown

This PR illustrates an alternative using Cue to generate the JSON Schema files instead of Pydantic.

It generates the following 2 schemas:

  • agent_payload.json
  • span.json

The span.json schema contains the logic of the existing intake_resolved_*_span.json schemas using the if/then/else JSON Schema feature: https://json-schema.org/understanding-json-schema/reference/conditionals#if-then-else

It also contains the changes made in #39

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.

1 participant