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

How to hide Schema segment? #245

Closed
imyellow opened this issue Mar 17, 2016 · 1 comment
Closed

How to hide Schema segment? #245

imyellow opened this issue Mar 17, 2016 · 1 comment

Comments

@imyellow
Copy link

When I use + Attributes in Response,it will add Schema to html code auto, how can I disable it?
thanks.

@scullingworth
Copy link

You can do this by modifying the default Jade template. Make a copy of index.jade, mixins.jade and scripts.js from the Olio template, then in mixins.jade remove:

             if request.schema
                h5 Schema
                pre: code
                    != self.highlight(request.schema, null, ['json', 'yaml', 'xml'])
                div(style="height: 1px;")

and run aglio with --theme-template /path/to/new/template/index.jade option.

This seems like a very useful change as I did the same thing to ours. Seems like this should be added as an option to the Olio theme.

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

No branches or pull requests

2 participants