profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/JaapWijnen/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jaap Wijnen JaapWijnen @Workmoose Amsterdam www.jaa.app Theoretical Physics graduate based in Amsterdam, programmer, tinkerer, creative.

JaapWijnen/renderEngineCpp 1

Render engine written in C++ and OpenGL

JaapWijnen/carton 0

📦 Watcher, bundler, and test runner for your SwiftWasm apps

JaapWijnen/episode-code-samples 0

💾 Point-Free episode code.

push eventJaapWijnen/VaporOpenAPI

Jaap Wijnen

commit sha 957879ee9c31ba7fde3f6a62250ebf2b9beccdb6

add additional test for responses with empty body

view details

push time in 2 months

push eventJaapWijnen/VaporOpenAPI

Jaap Wijnen

commit sha d3b820b2f810ffeb9c52d5c82da2e2c5211b5a6f

fix for empty responses only

view details

push time in 2 months

PR opened mattpolzin/VaporOpenAPI

make sure empty .created response shows up in possible responses in docs

Similar issue to #9 but with the .created status code.

+30 -1

0 comment

2 changed files

pr created time in 2 months

create barnchJaapWijnen/VaporOpenAPI

branch : fix-created-status-response

created branch time in 2 months

issue openedmattpolzin/VaporOpenAPI

Response doesn't show for responses without a body

I can't get the library to show in the docs what responses to expect from something like a delete request that would just return a .noContent header. Any tips on how to get that to display in the responses part of the docs?

I tried using the following context:

struct DeleteContext: RouteContext {
    typealias RequestBodyType = EmptyRequestBody

    static let defaultContentType: HTTPMediaType? = nil
    static let shared = Self()

    let success: ResponseContext<HTTPStatus> = .init { response in
        response.status = .noContent
    }
}

created time in 2 months

issue commentmattpolzin/VaporOpenAPI

How to properly get JSONSchema for Fluent Model

Would you have an example struct of a model with a fluent relation? I'm not sure how to translate between those two worlds

joshdholtz

comment created time in 2 months