swaggest / go-code-builder Goto Github PK
View Code? Open in Web Editor NEWJSON Schema enabled Go code building abstraction for PHP
License: MIT License
JSON Schema enabled Go code building abstraction for PHP
License: MIT License
I ran into this error using json-cli - but the error points me to this repository.
To reproduce, run the following
json-cli gen-go https://raw.githubusercontent.com/asyncapi/bindings/master/http/json_schemas/operation.json
And you should see
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 266240 bytes) in phar:///usr/local/go/bin/json-cli/vendor/swaggest/go-code-builder/src/GoCodeBuilder.php on line 61
I'm trying to generate an HTTP binding that I can contribute to your go-asyncapi project. I've tried upping the memory limit all the way to 2GB and it still fails. I'm trying to find a fix myself, but I have never even set up a PHP development environment, so if you have any advice or fixes they would be welcome.
For what it's worth, this fails in that repo as well running make gen-2.0.0
after adding the file referenced above as http-operation-binding-object-0.1.0.json
and then referencing it in asyncapi-2.0.0.json
.
Changes can be seen here
With trailing .
and empty //
between lines.
Required properties need to be rendered as nullable and nil-check should be performed on (un)marshaling. This will allow correct processing of oneOf
structures.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.