Skip to content

feat: added tag cache, added EmbeddedFieldBehavior#95

Open
michal-laskowski wants to merge 1 commit into
gzuidhof:mainfrom
michal-laskowski:main
Open

feat: added tag cache, added EmbeddedFieldBehavior#95
michal-laskowski wants to merge 1 commit into
gzuidhof:mainfrom
michal-laskowski:main

Conversation

@michal-laskowski

Copy link
Copy Markdown

Refactor tag access patterns to use a centralized caching mechanism with embedded type default behavior.

Centralized tag management with caching and embedded type handling.

For anonymous/embedded fields (fields with no names):

  • Default (empty string): Treated as regular fields (requires explicit tstype:",extends" tag)
  • Configurable: Set embedded_field_behavior with tag-like syntax
  • Syntax: Uses tag-like syntax, e.g., "extends,required"
  • Examples:
    • "" - Treat as regular field
    • "extends" - Extends, optional (wrapped in Partial<>)
    • "extends,required" - Extends and required
  • Override: Explicit tstype:"-" or tstype:",extends" tags always respected

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