-
Notifications
You must be signed in to change notification settings - Fork 149
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
Allow to display custom Attributes in the Properties description #152
Conversation
A new console arg was added. This arg except a comma separated list. This list will be used to read the custom attributes of an property re adobe#151
# Conflicts: # cli.js
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but the whitespace settings in your git client seem off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also include an example in README.md
and an integration test?
I think you mean the line endigs? Normally I use the recomend windows setting "core.autocrlf true". But if i enable this option on this project the properties list did not build correctly So I have disable the convert. But when I use npm run commit it seems that it still do the convert. And yes I will add the option to the Readme.md file and I will write a short test for it |
@trieloff |
Add it to the block you've outlined. I think it's good to have one example with minimum options and one with all options and hope that we never get options with cross-dependencies. |
Add description into README.md file and add the new property into the tests re adobe#151
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
@trieloff |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
Testfix after merging master re adobe#151
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting there. I've found two typos and would suggest we declare p
as an array property, which reduces the parsing burden.
cli.js
Outdated
} | ||
}) | ||
.alias('p', 'properties') | ||
.describe('p', 'A comma separated list with custom properties which should be also in the description of an element.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.describe('p', 'A comma separated list with custom properties which should be also in the description of an element.') | |
.describe('p', 'A comma separated list with custom properties which should be also in the description of an element.') | |
.array('p') |
This will use the built-in multi-value support in yargs, so that you can call jsonschema2md -p version -p test
or jsonschema2md -p version test
. I think that's more robust than trying to split the array yourself. (You'd have to adjust the rest)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trieloff
As far as I see the parser which is used did not have the function array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, I forgot we are using optimist, not yargs.
Co-Authored-By: Lars Trieloff <lars@trieloff.net>
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
Co-Authored-By: Lars Trieloff <lars@trieloff.net>
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
1 similar comment
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
I've merged your other PR, now there's some cleanup work to do, but then we should be ready. Again, sorry for the confusion regarding the command line arguments. |
Allow the use to disable the header over console args re adobe#152
Merge branch 'parent-master' into costumProperties re adobe#151
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
@trieloff |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
@trieloff How should I proceed? Should I add ajv again? |
Yes, please re-add it. |
Merge branch 'master' into costumProperties re adobe#151
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
Thank you for your contribution and your perseverance in the process, @Claymore1337 |
🎉 This PR is included in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
issue #151
In my project i have some attributes in the properties section which are not part of the JSONSchema. My requirment is to display also this properties.
So i would suggest to extend the the tool with an addtional parameter which except a list of
comma-separated values. This values will be used to read custom attributes of that propeties.