-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
create an index files inside of examples folder and connect all of our examples/schemas there #516
Comments
created index file & connected with schema/example #516
Ok, let's also add and export from this file a method, that will return to us one files, when it's necessary. something like get('allergy') and it will return our variable |
what do you recommend? how to do this? |
the easiest way is to combine all of our variables into array.
so diets, and other will be inside of array. aka ```[ 'diets':diets,
'allergy':allergy ]```...
then inside of that function we'll use that variable as array key in order
to return only one file with data, not all of them. show me some examples
at PR and i'll guide you forward
… |
@atherdon need we add a function in index.js file or play.js one for return the file with data? |
btw sorry for the late response. i've been busy lately |
yes, index that will be a separated point where we connect to files. and no
problem at all - we don't have rush - so take your time
… |
@atherdon @vadim9999 is there any task for me? |
of course! @elnur004 |
@atherdon yeah i'm waiting! |
@elnur004 grab this one: GroceriStar/groceristar-fetch#448 (comment) Am i rihgt - i can close this task? |
@atherdon if everything has been done, you can |
Is your feature request related to a problem? Please describe.
I want to splify our work with next step - we can reduce logic of connecting schemas and examples by having one file that connect all of them.
later we'll create a method, that will return both schema and example into our test file.
it maybe not make our code better, but will help us later
Is it was created as task at GitHub issues? Please provide an issue number or link
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: