Skip to content

Instantly share code, notes, and snippets.

View McMlok's full-sized avatar

Martin Tomašovič McMlok

View GitHub Profile
@McMlok
McMlok / enum-discriminator.yaml
Created September 26, 2024 11:35
OpenApi codegen issue with enum disriminator
openapi: 3.0.0
info:
description: "Channel api"
version: 1.0.0
title: Channels API
termsOfService: http://swagger.io/terms/
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
@McMlok
McMlok / duplicit-classes.yaml
Created September 26, 2024 09:01
OpenApi codegen duplicit Response interface when multiple tags in method
openapi: 3.0.0
info:
description: "Test api"
version: 1.0.0
title: Test API
termsOfService: http://swagger.io/terms/
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
tags:
@McMlok
McMlok / channel-repro.yaml
Created September 26, 2024 07:01
OpenApi-Codegen-Channel-Repro
openapi: 3.0.0
info:
description: "Channel api"
version: 1.0.0
title: Channels API
termsOfService: http://swagger.io/terms/
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
@McMlok
McMlok / TracingObserver.cs
Created September 5, 2024 07:08
OTEL MassTransit observer using Propagators
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using MassTransit;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry;
using System.Collections.Generic;
using MassTransit.Transports;
using MassTransit.Logging;
using MassTransit.Util;
@McMlok
McMlok / Lens-CDR-error.png
Last active September 1, 2020 17:31
Lens
Lens-CDR-error.png