Comments (9)
The code transforming openapi (v2) into nickel is functional but needs a bit more effort to share it - I will open the repository as soon as it is in state encouraging cooperation (and somewhat usable :) )
from nickel.
@LloydNinjago https://github.com/tweag/nickel-kubernetes/tree/master/openapi2-to-nickel
Cheers!
from nickel.
By openapi I assume you mean json schema definitions part which are used for request/responses in openapi.
Just one note, in kubernetes case they have some extra fields that define merging rules for lists (by which key objects in lists are merged), so generator might need to be extensible enough to support such cases.
from nickel.
Oops, you're right, it's still WIP and probably not in a releasable state. Let us wait for Aleksander to polish it and release it at some point.
from nickel.
Closing in favor of #418. Note that a JSON schema to Nickel contract converter is to be worked on by @vkleen soon.
from nickel.
Hello, and thanks for the suggestion! The focus is on an MVP right now but this is definitely something to look at.
from nickel.
As an update, @AleksanderGondek has begun to tackle this kind of stuff for kubernetes: [EDIT: not yet public]
from nickel.
(note: seems to be a private repo for now)
from nickel.
Hello. Any chance there was progress on this? Would it be possible to make the repo' available so others could contribute?
from nickel.
Related Issues (20)
- Nickel Release 1.5.0 does NOT contain binaries HOT 3
- Subcommand for applying functions to commandline arguments HOT 4
- Dynamic import resolution HOT 5
- Confusing merge behaviour in `std.record.{update,remove}` HOT 1
- `std.string.find_all` HOT 1
- Add `record.has_field_all` and `record.fields_all` HOT 1
- Add raw strings
- NLS crashes on recursive definitions HOT 11
- Proposal: freeze recursive records upon insert/remove/update/map
- NLS reports same diagnostic message multiple times HOT 3
- VSCode extension does not show hints for functions annotated with record contract HOT 1
- VSCode Extension should not disregard cursor position and collapse all symbol breadcrumbs to "..." in all occasions
- Weird `nix develop` error HOT 4
- Strange error in std.array.any HOT 2
- Provide contract interface to pyckel HOT 1
- Add functions to create and generically unwrap enum variants HOT 1
- Inconsistent behaviour while loading multiple files vs single file HOT 2
- Getting `record_insert: tried to extend but already exists` when using patterns with duplicate bound variables HOT 2
- Memory leak with long-running nickel process HOT 1
- Opaque foreign values
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 nickel.