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

Make generation and import clearer #47

Merged
merged 1 commit into from
May 8, 2024
Merged

Conversation

hjonin
Copy link
Contributor

@hjonin hjonin commented May 8, 2024

Issue #44 made me think of this small code refactoring to improve readability.

Instead of using an internal context file (consisting of all manually merged contexts) to manipulate the document internally, we directly use the concatenation of all contexts as the context.

@@ -65,12 +65,12 @@ function validateDocument(doc) {
}


async function parseAndValidateCodemeta(showPopup) {
function parseAndValidateCodemeta(showPopup) {
Copy link
Contributor Author

@hjonin hjonin May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go back to former version and do not mix json ld processing with validation before resolving #29 .

@progval
Copy link
Member

progval commented May 8, 2024

Good idea, thanks

@progval progval merged commit ae70f9a into codemeta:master May 8, 2024
1 check passed
@hjonin hjonin deleted the refactoring branch May 8, 2024 20:15
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