yushengchen
|
fe74dbea74
|
refactor(json): Consolidate JSON utilities and type definitions
Modified files:
- client/src/components/DynamicJsonForm.tsx
- client/src/components/JsonView.tsx
- client/src/components/ToolsTab.tsx
- client/src/components/__tests__/DynamicJsonForm.test.tsx
- client/src/utils/__tests__/jsonPathUtils.test.ts → client/src/utils/__tests__/jsonUtils.test.ts
- client/src/utils/__tests__/schemaUtils.test.ts
- client/src/utils/jsonPathUtils.ts → client/src/utils/jsonUtils.ts
- client/src/utils/schemaUtils.ts
Descriptions:
- Move JSON type definitions from DynamicJsonForm to centralized jsonUtils
- Consolidate utility functions (getDataType, tryParseJson) into jsonUtils
- Rename jsonPathUtils to jsonUtils for better semantic clarity
- Add comprehensive test coverage for new utility functions
- Update imports across all affected components
- Improve type references consistency throughout the codebase
|
2025-04-09 09:20:02 +08:00 |
|
Abdelkader Boudih
|
af44efb236
|
chore: extract utils escapeUnicode
|
2025-03-22 16:25:33 +00:00 |
|
Ola Hungerford
|
c463dc58c2
|
Simplify check for defaults and add another test
|
2025-03-18 06:23:25 -07:00 |
|
Ola Hungerford
|
a85d5e7050
|
Fix formatting
|
2025-03-17 07:56:23 -07:00 |
|
Ola Hungerford
|
7ddba51b36
|
Generate empty objects and arrays for non required object and array fields
|
2025-03-17 06:36:35 -07:00 |
|
Ola Hungerford
|
0e50b68f96
|
Fix formatting
|
2025-02-28 06:30:23 -07:00 |
|
Ola Hungerford
|
a1eb343b79
|
Remove unused function plus tests
|
2025-02-28 06:26:04 -07:00 |
|
Ola Hungerford
|
82bbe58a46
|
Fix formatting
|
2025-02-27 22:08:04 -07:00 |
|
Ola Hungerford
|
44982e6c97
|
Default to nulls and update tests
|
2025-02-27 21:33:37 -07:00 |
|
Ola Hungerford
|
238c22830b
|
Fix formatting
|
2025-02-27 07:21:04 -07:00 |
|
Ola Hungerford
|
0747479694
|
Handle edge case and add tests for functions
|
2025-02-27 06:40:01 -07:00 |
|