Coder Social home page Coder Social logo

dieghernan / cff-validator Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 3.0 2.51 MB

Validate your CITATION.cff file with GitHub Actions

Home Page: https://github.com/marketplace/actions/cff-validator

License: MIT License

cff citation citation-file-format citation-files github-actions

cff-validator's Introduction

cff-validator's People

Contributors

behrisch avatar dependabot[bot] avatar dieghernan avatar imgbotapp avatar kurtmckee avatar sdruskat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cff-validator's Issues

Improve validation feedback?

Hi again,

This is something that all validation using generic JSON Schema validation packages have to deal with: the validation results may not be found very helpful in some cases, especially for users not experienced in schema validation. Improving the output is a lot of work and needs implementation of extra logic, but would help the user. Also, perhaps this could also be done in the upstream dependency itself. So this is more of a suggestion for discussion than a feature request.

E.g.,

  • in this run, the error message is 1 data has additional properties (there is an extra key extra in the test file). It'd be great if in this case, the name of the addtl. property was provided.
  • In this run, the error message is more helpful: 1 data["date-released"] referenced schema does not match. I think this is good enough. ✔️
  • In this run, the error is 1 data.authors is required. Good enough ✔️

Additionally, I'm not sure that the field and message output are helpful/well-aligned with the output from the validation package:

------

                  field                          message
1 data["date-released"] referenced schema does not match

Cache dependencies

Hi @dieghernan, thanks for a great project!

I've found that using the example setup you provide in README.md, the dependencies for your script are downloaded and installed afresh every time the action is run, which increases runtime for users.

I'm not sure if there is perhaps a reason for doing this, and I haven't had a very close look at action.yml (and I'm not an experienced R user at all), but perhaps the dependencies could be cached as well? Or if they are, the example could be amended to enable caching?

Thanks!

validation fails in v2.2

The file https://github.com/eclipse/sumo/blob/bc4df2629e385b463bd7a0b58883c23cb3cd73e4/CITATION.cff validated just fine with v2. The new version triggers several errors: https://github.com/DLR-TS/sumo/actions/runs/3599552359/jobs/6063291364
This is probably related to the fact that we do not checkout to root but to a separate dir but I did not find a way to tell this fact to the validator.
Is it now required to have the cff file in the root and can we only validate inside a git repo?

SSL peer certificate or SSH remote key was not OK

We have been using dieghernan/cff-validator@main for a while now.

However since 19 Jul 2023 we get:
Error in download.file("https://raw.githubusercontent.com/citation-file-format/citation-file-format/main/schema.json", :
cannot open URL 'https://raw.githubusercontent.com/citation-file-format/citation-file-format/main/schema.json'
In addition: Warning message:
In download.file("https://raw.githubusercontent.com/citation-file-format/citation-file-format/main/schema.json", :
URL 'https://raw.githubusercontent.com/citation-file-format/citation-file-format/main/schema.json': status was 'SSL peer certificate or SSH remote key was not OK'

This also in github action that previously passed and where rerun.

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.