Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semantic-core: alternative version using cue #49

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rarguelloF
Copy link

@rarguelloF rarguelloF commented Jan 10, 2024

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