Comments (10)
actually we need migrator before writing validator.
anyway i want to discuss about json schema.
jsonschema module is non standard extra packages, so someone cannot want to install this.
IMO, db.json format is simple. why we select sledgehammer for this?
from vita-headers.
I think that @frangarcj has already built a migrator.
Well, by defining a specification we can define precisely what we expect. If there is something wrong, the validator will tell us exactly what's wrong and where. This should make it more useful than a basic script checking for a few things.
from vita-headers.
I think that @frangarcj has already built a migrator.
ok
Well, by defining a specification we can define precisely what we expect. If there is something wrong, the validator will tell us exactly what's wrong and where. This should make it more useful than a basic script checking for a few things.
actually my word is just asking why we select more dependencies instead minimalism.
really thought you to need schema in db.json?
if our spec is already too complex, in my opinion, that is already wrong.
why we select json? in before, member said it's simple, porting easier, and else, whatever.
i'm one of javascript hater :/
but yeah i agree, json spec is actually nice. but it's just little old.
(this format actually not modified since first introduce)
but json-schema spec is more weird. it defined for define like DTD, and result looks mess.(also like DTD)
(my company have least two diff transpiling format for json-schema, because no body like using this specification)
in before i made quick & dirty script for comparing value of #86
yeah, it's ugly, but we can make clean code.
anyway, i think, current db format looks simple, so we just need looping and value checking.
(actually we still need value duplication checking, isn't it?)
from vita-headers.
my opinion just depend db format, if we will change to more complexly, i don't like personally that changes, but i agree we probably use schema.
so i want to talk just current.
from vita-headers.
Hm I agree. This could be kind of overkill, and maybe not worth maintaining.
Anyway I built a rough schema before I saw your answer, so I'll leave it here anyway:
https://gist.github.com/devnoname120/dcef560130a1e3f3dfa109a0fc5b0b2d
from vita-headers.
from vita-headers.
Is this still needed now that we use YAML? Or should this be renamed to "YAML DB validator"?
from vita-headers.
No, I'll rename the issue.
I can write a YAML scheme validator if needed, using pykwalify.
from vita-headers.
I still think it's useless.
from vita-headers.
OK, the benefit with this is that we can catch issues earlier and automatically verify pull requests. A simple python script would let go some issues, and I'm not sure it's less hassle to maintain.
from vita-headers.
Related Issues (20)
- Need to separate headers for each library HOT 7
- SceAppMgr HOT 6
- Some function arguments are wrong
- _vshSblAimgrGetConsoleId doesn't appear in the search HOT 11
- Functions with the same nid exist HOT 7
- socket sceNetSend looks not working properly HOT 4
- Libraries of the module SceDriverUser are in wrong modules HOT 2
- definition_check couldn't check c++ mangled methods
- split the db.yml to muliple files
- Merge vdsuite NID database to the vitasdk HOT 9
- Possible error in sceAppMgrLaunchAppByUri HOT 6
- PS Vita Dev Wiki link on homepage dead HOT 3
- Add a function to open quick menu without triggering the button HOT 5
- build.py makes bunch of empty folders without db.yml
- [Question] Setting up an arbitrary virtual address space HOT 7
- [Question] Calling function from loaded module HOT 9
- No `sceGxtGetDataAddress` nids?
- Compatibility with projects that have their own prototype definitions such as taihen or something
- sceAvPlayerInit return negative value (0x81300020) HOT 9
- Stubname field added to YML databases without any documentation HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vita-headers.