..
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module codegen
|
||||
|
||||
import log
|
||||
import freeflowuniverse.herolib.core.code { Alias, Array, Attribute, CodeItem, Object, Struct, StructField, Type, type_from_symbol }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Alias, Array, Attribute, CodeItem, Object, Struct, StructField, Type, type_from_symbol }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Reference, Schema, SchemaRef }
|
||||
|
||||
const vtypes = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { Param, Struct, Type }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Param, Struct, Type }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Number, Reference, Schema, SchemaRef }
|
||||
|
||||
// struct_to_schema generates a json schema or reference from a struct model
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module codegen
|
||||
|
||||
import log
|
||||
import freeflowuniverse.herolib.core.code
|
||||
import freeflowuniverse.herolib.develop.codetools as code
|
||||
|
||||
fn test_struct_to_schema() {
|
||||
struct_ := code.Struct{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { File, Folder }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { File, Folder }
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Reference, Schema }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema.codegen { schema_to_struct }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code
|
||||
import freeflowuniverse.herolib.develop.codetools as code
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Reference, Schema, SchemaRef }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema.codegen
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code
|
||||
import freeflowuniverse.herolib.develop.codetools as code
|
||||
import freeflowuniverse.herolib.schemas.jsonschema.codegen as jsonschema_codegen { schemaref_to_type }
|
||||
import freeflowuniverse.herolib.schemas.openapi { ResponseSpec }
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { Function, Module, Struct }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Function, Module, Struct }
|
||||
import freeflowuniverse.herolib.schemas.openrpc { OpenRPC }
|
||||
|
||||
// pub struct OpenRPCCode {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { CodeItem, CustomCode, Function, Struct, VFile, parse_function }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { CodeItem, CustomCode, Function, Struct, VFile, parse_function }
|
||||
// import freeflowuniverse.herolib.schemas.jsonrpc.codegen {generate_client_struct}
|
||||
import freeflowuniverse.herolib.schemas.openrpc { OpenRPC }
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { CodeItem, CustomCode, Function, Param, Struct, VFile, parse_import }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { CodeItem, CustomCode, Function, Param, Struct, VFile, parse_import }
|
||||
import freeflowuniverse.herolib.schemas.openrpc { OpenRPC }
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import rand
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { CustomCode, VFile, parse_function, parse_import }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { CustomCode, VFile, parse_function, parse_import }
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import freeflowuniverse.herolib.schemas.openrpc { OpenRPC }
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { CodeItem }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { CodeItem }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Schema }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema.codegen as jsonschema_codegen { schema_to_code }
|
||||
import freeflowuniverse.herolib.schemas.openrpc { OpenRPC }
|
||||
|
||||
@@ -2,7 +2,7 @@ module codegen
|
||||
|
||||
import os
|
||||
import json
|
||||
import freeflowuniverse.herolib.core.code { Alias, Struct }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Alias, Struct }
|
||||
import freeflowuniverse.herolib.core.pathlib
|
||||
import freeflowuniverse.herolib.schemas.openrpc
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module codegen
|
||||
|
||||
import freeflowuniverse.herolib.core.code { Function, Struct }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Function, Struct }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema.codegen as jsonschema_codegen { schema_to_struct, schemaref_to_type }
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Schema }
|
||||
import freeflowuniverse.herolib.schemas.openrpc { ContentDescriptor, Method }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module openrpc
|
||||
|
||||
import freeflowuniverse.herolib.schemas.jsonschema { Reference }
|
||||
import freeflowuniverse.herolib.core.code { Struct, StructField }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Struct, StructField }
|
||||
import x.json2
|
||||
|
||||
pub fn parse_example_pairing(text_ string) !ExamplePairing {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module openrpc
|
||||
|
||||
import freeflowuniverse.herolib.core.code { Attribute, Struct, StructField }
|
||||
import freeflowuniverse.herolib.develop.codetools as code { Attribute, Struct, StructField }
|
||||
|
||||
const example_txt = "
|
||||
Example: Get pet example.
|
||||
|
||||
Reference in New Issue
Block a user