Skip to content

feat: Enabled custom primitives for basic types#20

Open
ArthurFreeb wants to merge 2 commits intoJamess-Lucass:mainfrom
ArthurFreeb:feat/custom-primitives
Open

feat: Enabled custom primitives for basic types#20
ArthurFreeb wants to merge 2 commits intoJamess-Lucass:mainfrom
ArthurFreeb:feat/custom-primitives

Conversation

@ArthurFreeb
Copy link
Copy Markdown

@ArthurFreeb ArthurFreeb commented Nov 4, 2024

Addresses: #15

This pull request includes changes to the schema.go and string_test.go files to improve type handling and add new test cases. The most important changes include enhancing the type checking in the Parse method and adding a new test for custom primitive types.

Improvements to type handling:

  • schema.go: Enhanced the Parse method in the Schema struct to improve type checking by comparing the kind of the value with the expected type.

New test cases:

  • string_test.go: Added a new test function TestString_CustomPrimitive to validate custom primitive types such as CatalogueMarginLevel and CatalogueMargin.

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