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

Config file sturcutre #4

Open
3 of 10 tasks
at15 opened this issue Sep 7, 2016 · 2 comments
Open
3 of 10 tasks

Config file sturcutre #4

at15 opened this issue Sep 7, 2016 · 2 comments

Comments

@at15
Copy link
Member

at15 commented Sep 7, 2016

In order to work for team and individual as both blog and about page, the config files should work as a small database.

  • people, for all the people mentioned in blog and about page
    • for @
    • add personal timeline
    • add education
    • add work
    • link to other social accounts
  • blog, blog posts
  • support $ref for external files f7a5447
  • support inner field inside external file ie : address.yml/#/SJTU 0a624a8
  • resolve inner objects 3caee68
@ComMouse
Copy link
Member

ComMouse commented Sep 7, 2016

@at15 Just to code something ugly, fast and to make it work is ok, I think... rather than some fancy tools

@at15
Copy link
Member Author

at15 commented Sep 7, 2016

@ComMouse I just want some fancy and useless tools \w/ (come and beat me

In order to use $ref

swagger has its own resolver https://github.com/swagger-api/swagger-js/blob/master/lib/resolver.js

and an example using js-ref https://github.com/mohsen1/multi-file-swagger-example

at15 added a commit that referenced this issue Sep 7, 2016
- only simple parse is support, $ref in current document and cross
  document is not supported yet
at15 added a commit that referenced this issue Sep 8, 2016
- didn't use library for resolve $ref
- all path are transformed to full path in Parser
- add a Stack class to deal with relative path in $ref values, ie: in
  example/data/people.yml $ref : sway.yml means example/data/sway.yml
  instead of ./sway.yml
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