#API #Query #StateManipulation
#API #Query #StateManipulation
Fuck you @RequestBody
É o crime e compensa kkk
Fuck you @RequestBody
É o crime e compensa kkk
Meu método Post já era para esperar um Objeto como parâmetro sem eu precisar dizer a ele
Na minha cabeça faz sentido um framework que já diga que
Meu método Post já era para esperar um Objeto como parâmetro sem eu precisar dizer a ele
Na minha cabeça faz sentido um framework que já diga que
Either I'm going crazy, or I'm fundamentally misreading something...
Either I'm going crazy, or I'm fundamentally misreading something...
"warning: Schema "allOf ()" is not supported, reason: "not a reference", skipping [context: foundIn=Operations.UpdateMessage.Input.Body (#/paths/channels/{channel_id}/messages/{message_id}/PATCH/requestBody)]"
"warning: Schema "allOf ()" is not supported, reason: "not a reference", skipping [context: foundIn=Operations.UpdateMessage.Input.Body (#/paths/channels/{channel_id}/messages/{message_id}/PATCH/requestBody)]"
Why does it want a requestbody? it's confusing my one brain cell
Why does it want a requestbody? it's confusing my one brain cell
File: vendor/k8s.io/kube-openapi/pkg/spec3/request_body.go:69
func (r *RequestBody) UnmarshalJSON(data []byte) error
SVG: dark, light
File: vendor/k8s.io/kube-openapi/pkg/spec3/request_body.go:69
func (r *RequestBody) UnmarshalJSON(data []byte) error
SVG: dark, light
gist.github.com/cbeyls/df12d...
It seems to work well and should fix the issue with all the ConverterFactories. @sinankozak.bsky.social @p-y.wtf
gist.github.com/cbeyls/df12d...
It seems to work well and should fix the issue with all the ConverterFactories. @sinankozak.bsky.social @p-y.wtf
CVSS V3.1: MEDIUM
Spring MVC controller methods with an @RequestBody byte[] method parameter are vulnerable to a DoS attack.
#security #infosec #cve-alert
CVSS V3.1: MEDIUM
Spring MVC controller methods with an @RequestBody byte[] method parameter are vulnerable to a DoS attack.
#security #infosec #cve-alert
So, i asked chatGPT what i was doing wrong, and it spat out the following code:
It works. It makes sense (mine didn't. heh). I'm researching right now to find out if this is correctly idiomatic.
So, i asked chatGPT what i was doing wrong, and it spat out the following code:
It works. It makes sense (mine didn't. heh). I'm researching right now to find out if this is correctly idiomatic.
DungeonSmith is using reactive mongo/webflux for some of it's microservices, mainly so I can learn how to work with it.
I'm still learning, so this was my first attempt at converting declarative saving code to reactive:
DungeonSmith is using reactive mongo/webflux for some of it's microservices, mainly so I can learn how to work with it.
I'm still learning, so this was my first attempt at converting declarative saving code to reactive:
Create your own RequestBody implementation instead of calling RequestBody.create() with the serialized bytes, and then perform the serialization lazily, only when RequestBody.writeTo(sink) is called (it's called from the http thread).
Create your own RequestBody implementation instead of calling RequestBody.create() with the serialized bytes, and then perform the serialization lazily, only when RequestBody.writeTo(sink) is called (it's called from the http thread).
❌ @ApiResponse pra erros (400, 404, 500)
📦 @RequestBody + @Schema nos payloads
🧪 Exemplos nos parâmetros
✅ Anotações nos DTOs
Até o "você do futuro" vai agradecer.
#APIDocs #SpringBoot #OpenAPI #bolhadev #pudim
❌ @ApiResponse pra erros (400, 404, 500)
📦 @RequestBody + @Schema nos payloads
🧪 Exemplos nos parâmetros
✅ Anotações nos DTOs
Até o "você do futuro" vai agradecer.
#APIDocs #SpringBoot #OpenAPI #bolhadev #pudim
❌ @ApiResponse for 400/404/500
📦 @RequestBody + @Schema to describe payloads
🧪 Example values everywhere
✅ DTO annotations
Docs so clear even future-you will thank you.
#APIDocumentation #SpringBoot #bolhadev #OpenAPI #pudim
❌ @ApiResponse for 400/404/500
📦 @RequestBody + @Schema to describe payloads
🧪 Example values everywhere
✅ DTO annotations
Docs so clear even future-you will thank you.
#APIDocumentation #SpringBoot #bolhadev #OpenAPI #pudim