Comments (3)
I would not compare the .of()
factory method of some conjure-java beans with the constructor of the conjure-python "object" classes.
In Java, the .of()
method is simply a convenience wrapper around the builder for beans with small number of arguments. In Python, the constructor is the equivalent of the Java builder and is the only way to create these objects.
I do agree though that the current ordering is not ideal. Long term we want to major rev the code gen and make all constructor and endpoint arguments kwargs for robustness (prevent binary breaks caused by backwards compatible API changes) and clarity
from conjure-python.
@ferozco : Is this long-term change (making all constructor and endpoint arguments kwargs for robustness) still on your roadmap? I think that there is an argument to be made that this major rev can also come with dropping Python2 support (Python2 was sunset more than a year ago), which would make the implementation of enforcing mandatory keyword args a great deal simpler.
from conjure-python.
Hey @AaronJRubin I've rolled off of the team and I don't believe there is any active development on Conjure-python right now. @carterkozak or @jkozlowski are the best people to ask
from conjure-python.
Related Issues (20)
- [bug] Generated aliases are sorted alphabetically, not topologically
- Docstrings ending in a double quote break generated code HOT 3
- Union generator is broken for types that alias to python keywords
- Union types break service serialization
- Surface which field is failing in schema validation
- Query params are not serialized according to the conjure wire spec HOT 2
- Conjure python types are not picklable
- Invalid use of keywords as variable names
- Cannot create a field with a single letter name, bad error message if this is intended to be supported HOT 1
- FR: Generate __slots__ for objects HOT 1
- Path parameters are not url encoded
- Add a header for autogenerated classes
- FR: Add support for default arguments for list/set query parameters
- Valid conjure definition results in circular python import
- Package names broken in 3.10.0
- Unrecognized token 'types': was expecting 'null', 'true', 'false' or NaN HOT 1
- Union type with name of "property" fails at runtime HOT 1
- Using the name of a builtin as a property (like "property") breaks the generated code HOT 1
- [bug] Generated classes reference types they don't import, breaks mypy checks HOT 7
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 conjure-python.