Giter Club home page Giter Club logo

Comments (5)

hansena avatar hansena commented on June 16, 2024

Totally open to this being entirely on me missing something obvious but I've done more than a few laps on this and can't seem to turn up anything that seems like it would cause this to fail. Any direction will be greatly appreciated.

from schemaspy.

npetzall avatar npetzall commented on June 16, 2024

Hi, sorry for late reply.

One thing that I'm unsure of is the validation. I know we have it in the code, but the noNamespaceSchemaLocation needs to be updated (possibly).

But that might be an issue after the parsing has passed.

I'll try to test a bit if I get time tonight. But some common problem that I've experienced with different parsers are.

File has switched encoding and there is a non printable char in the beginning of the file.

File isn't actually UTF-8 encoded.

As far as SchemaSpy goes it seems to think that the file exist and it runs in problems when trying to parse.

Secondly, which I think might be a typo either in command or when added to GitHub is the mount argument which might get treated as a volume and folder.

I checked the code last night and we might only look if it exists and not if it's a volume.

But as I wrote earlier I don't think that the mount works

-v "$PWD/.schemaspy/discovery_apic4e.meta.xml"

Since it's missing target/destination in container.

from schemaspy.

npetzall avatar npetzall commented on June 16, 2024

Totally unrelated to the issue, but I saw you are using MacOS, if your using Apple Silicon, you can use tag snapshot and get better performance since it has an arm64 image.

from schemaspy.

npetzall avatar npetzall commented on June 16, 2024

I've also verified that if the mount is wrong. SchemaSpy will try to parse a folder and that's wrong.

Need to add som validation that we are actually trying to read a file and that we are able to read it. So that is something we can do in regards to error handling.

As for the validation that I mentioned, it must be relaxed and ignore the defined one.

I copied the meta xml above and added it to folder and specified the folder as meta.
I was able to parse it without issues.

So either it's the file encoding issue or you mount is not correct.

You can add to nerdctl -ti --rm --entrypoint sh and remove alla arguments after schemaspy/schemaspy:latest this will drop you into a shell with in the container and you can validate the mounts and also run vi and check the contents.

from schemaspy.

hansena avatar hansena commented on June 16, 2024

@npetzall you’re 100% right on the bad mount. Thanks a ton for the quick response

from schemaspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.