openapi-spec-reader #10
Reference in New Issue
Block a user
No description provided.
Delete Branch "openapi-spec-reader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary of Changes:
openapi_loader.tsto collect all standalone enum schemas (e.g.,FetchRequestStatus) into theAppConfig.enumsmap.mergePropertiesandoneOf/anyOfresolution inopenapi_loader.tsto ensure complex schemas likeFetchRequest(usingallOf) andsource(usingoneOf) are correctly parsed.enumOption(template-based) andenumLabels(mapping-based) to the config and field types.resolveTemplateinutils/options.tsto handle placeholders like'{name} {number}'or plain field names.FormField.tsx: Updated relation and enum selects to usegetFieldOptions()for correct key/value pairs and labels. Added value normalization to extract keys from API objects.EnhancedTable.tsx: UpdatedvalueOptionsto use key/value pairs forsingleSelectand updatedFieldRendererto show the human-readable label for enums.FilterBar.tsx: UpdatedextractOptionsto use spec-driven labels for enum filters.ResourceView.tsx: Centralized filter matching logic into agetDisplayStringhelper, ensuring filter comparisons use the same templates as the UI labels.FetchRequests.tsxandFetchRequestDetail.tsxnow derive status and format options from the OpenAPI spec viauseConfig()instead of using hardcoded arrays.