Code Monkey home page Code Monkey logo

Comments (3)

paulRbr avatar paulRbr commented on May 23, 2024

Hi @avinesse,

After a small investigation it seems that this error comes from the js-yaml library as the given JSON file is transformed into YAML format internally in the bump-cli tool.

So it seems the given input file bump/diff.json is badly formed in some way. Do you have the possibility to retrieve the content of that bump/diff.json file after you encounter such an error so we can investigate further please?

You can send us the file at [email protected] if you don't want to share it here publicly on GitHub.
Thanks for your help and let's try to understand what's going on here together!

from cli.

avinesse avatar avinesse commented on May 23, 2024

Hi there, thank you for the quick reply.
I was able to print a failing json in my CI. It seems the json is just cut off in the middle for some reason. So maybe I should be opening this issue with api-platform instead, sorry about that!
Just a quick question before I close the issue: if I wanted to send a yaml doc instead to avoid this change of format, I can just do it using the same command like this ?

bump deploy --dry-run bump/diff.yaml --token ${BUMP_TOKEN} --doc engagement --branch ${CI_COMMIT_BRANCH}

from cli.

paulRbr avatar paulRbr commented on May 23, 2024

Hi @avinesse,
Yes you can send either JSON or YAML format for you api definition file. The CLI will understand both.

Happy you found the problem in the orignal file and I hope you will be able to fix your issue.

from cli.

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.