Skip to content
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

Support of required keyword #72

Open
sserhii-95 opened this issue Aug 20, 2018 · 2 comments
Open

Support of required keyword #72

sserhii-95 opened this issue Aug 20, 2018 · 2 comments

Comments

@sserhii-95
Copy link

Please add support of required keyword. It would be nice to have some little label near field name, that is in the 'required array'

@cwalther
Copy link
Contributor

Unless I’m misunderstanding the request, this is already supported (and has been for a long time). Maybe the bold font used for it is not noticeable enough? One version I have lying around here adds an asterisk, but I can’t find that in any Git revision, so maybe I added it myself?

diff --git a/public/css/docson.css b/public/css/docson.css
index e315b22..803566a 100644
--- a/public/css/docson.css
+++ b/public/css/docson.css
@@ -181,8 +181,13 @@
 .docson .required {
     font-weight: bold;
 }
 
+.docson .required:after {
+	content: " *";
+	color: #880000;
+}
+
 .docson .type-keyword {
     font-size: 80%;
     color: dimgray;
 }

@cwalther
Copy link
Contributor

Oh, and, probably a duplicate of #30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants