Skip to content

Use Record<unknown> for non-metadata "object" extension maps (like file_search)#236

Merged
joseharriaga merged 2 commits into
mainfrom
user/travisw/record-unknown-for-maps
Sep 1, 2024
Merged

Use Record<unknown> for non-metadata "object" extension maps (like file_search)#236
joseharriaga merged 2 commits into
mainfrom
user/travisw/record-unknown-for-maps

Conversation

@trrwilson
Copy link
Copy Markdown
Collaborator

Changes were made via the ingestion tool.

  • The application of the x-oaiTypeLabel = map attribute now results in otherwise unspecified types being Record<unknown> instead of Record<object>.
  • metadata, a known Record<string> and the reason why the rule was the way it was, is special-cased with a straightforward, pattern-checked replacement
  • Repro test case included for before/after with file_search

@joseharriaga joseharriaga merged commit de7302b into main Sep 1, 2024
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