Skip to content

Handle hyphenated shex filenames correctly in @ldo/cli#147

Merged
jaxoncreed merged 3 commits intoo-development:mainfrom
mrkvon:fix-89-hyphen-shex
Mar 27, 2026
Merged

Handle hyphenated shex filenames correctly in @ldo/cli#147
jaxoncreed merged 3 commits intoo-development:mainfrom
mrkvon:fix-89-hyphen-shex

Conversation

@mrkvon
Copy link
Copy Markdown
Contributor

@mrkvon mrkvon commented Mar 25, 2026

Fixes #89

@@ -1,3 +1,6 @@
import { shexjToTyping } from "./typing/shexjToTyping";
import { toCamelCase } from "./context/JsonLdContextBuilder.js";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of this, change this and the one in context builder to use an NPM library.

Copy link
Copy Markdown
Contributor Author

@mrkvon mrkvon Mar 25, 2026

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

... but they're not equivalent. Another try...

Copy link
Copy Markdown
Contributor Author

@mrkvon mrkvon Mar 25, 2026

Choose a reason for hiding this comment

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

In order to avoid breaking changes, I've kept original toCamelCase in schema-converter-shex, due to its custom behaviour.

@ldo/cli uses camelcase npm library.

6ebfe95

@mrkvon mrkvon force-pushed the fix-89-hyphen-shex branch 3 times, most recently from e2df5d4 to 6ebfe95 Compare March 25, 2026 19:43
@mrkvon mrkvon force-pushed the fix-89-hyphen-shex branch from 6ebfe95 to 1e125eb Compare March 25, 2026 19:52
Copy link
Copy Markdown
Contributor

@jaxoncreed jaxoncreed left a comment

Choose a reason for hiding this comment

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

LGTM

@jaxoncreed jaxoncreed merged commit dd5dee8 into o-development:main Mar 27, 2026
2 checks passed
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.

ldo build fails when shex filename has hyphen eg. catalog-shacl.shex

2 participants