Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace CSV with JSON as file format for ISO Currency definitions #43

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

Mordil
Copy link
Collaborator

@Mordil Mordil commented Dec 27, 2024

Motivation:

We're pulling in a dependency for CSV parsing as part of the build tool, forcing a transitive dependency on all users.

We simply need a way of storing the original definitions from the ISO Standard committee and parsing them as part of the build process, and JSON + Codable solves that for us easily.

Modifications:

  • Change: Code to be a bit more legible on what's going on with the codegen
  • Change: Data parsing from CSV to JSON using Decodable
  • Rename: Files to be a bit more easily understandable of what's in each file
  • Remove: SwiftCSV dependency

Result:

The build plugin is a bit easier to maintain, and there is now no dependencies in the project.

@Mordil Mordil added enhancement New feature or request semver-patch Require SemVer Patch bump labels Dec 27, 2024
Base automatically changed from remove-old-impl to 0.7.0 January 6, 2025 17:08
Motivation:

We're pulling in a dependency for CSV parsing as part of the build tool, forcing a transitive dependency on all users.

We simply need a way of storing the original definitions from the ISO Standard committee and parsing them as part of the build process, and JSON + `Codable` solves that for us easily.

Modifications:

- Change: Code to be a bit more legible on what's going on with the codegen
- Change: Data parsing from CSV to JSON using `Decodable`
- Rename: Files to be a bit more easily understandable of what's in each file
- Remove: **SwiftCSV** dependency

Result:

The build plugin is a bit easier to maintain, and there is now no dependencies in the project.
@Mordil
Copy link
Collaborator Author

Mordil commented Jan 6, 2025

Latest push was a rebase off the target branch

@Mordil Mordil merged commit d65dcd4 into 0.7.0 Jan 6, 2025
0 of 12 checks passed
@Mordil Mordil deleted the remove-csv branch January 6, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-patch Require SemVer Patch bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants