Paul Hill
Paul Hill
Supporting environment config https://github.com/stellar/bridge-server/issues/100 simply added this config for Viper ``` replacer := strings.NewReplacer(".", "_") viper.SetEnvKeyReplacer(replacer) viper.SetEnvPrefix("STELLAR") viper.AutomaticEnv() ``` and updated Viper to the `v1.0.0` label Bridge server now supports...
The version of viper used in the bridge server doesn't support nested configs so I'm going to update it
should be valid if relative pathing is being used. (I updated swagger-ui to work with relative paths) ``` { "level": "error", "domain": "validation", "keyword": "pattern", "message": "ECMA 262 regex \"^[^{}/...
I use 'type: array' json schema to represent typed array responses from my API. Schema validation chokes on this (and swagger-ui needs to render them correctly too) ``` { "level":...
We don't necessarily need to support anyOf for tooling. I know the code generation authors like the definition of type hierarchy that comes with allOf inheritance. But it would be...
I noticed something else that doesn't work as expected in swagger-ui. I have this data structure: ``` "definitions": { "User": { "type": "object", "properties": { "id": { "type": "string", "format":...
This function throws a null pointer error if items isn't present for an array type. ``` var Property = function(name, obj, required) { this.schema = obj; this.required = required; if(obj['$ref'])...
seems to make calls sans the current port. Should keep the port ideally. I noticed this because we run dev instances on custom ports. seems to make some assumptions based...
Swagger uses allOf to denote inheritance to support polymorphism but swagger-ui doesn't take it into account. It should show either the parent schema with some kind of indication it is...
The documentation says an un-handled Exception will be returned as text/plain. But it is currently returned as HTML. Perhaps the return type should respect the accepts header? I would like...