This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc | |
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc | |
type StrictHTTPServerOptions struct { | |
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) | |
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) | |
} | |
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface { | |
return &strictHandler{ssi: ssi, middlewares: middlewares, options: StrictHTTPServerOptions { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "oas-merger" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
oas3 = "0.4.0" | |
serde = { version = "1.0", features = ["derive"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module oas_merger | |
go 1.22.0 | |
require ( | |
github.com/pb33f/libopenapi v0.15.14 | |
gopkg.in/yaml.v2 v2.4.0 | |
) | |
require ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/segmentio/kafka-go" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"time" | |
"github.com/rs/xid" | |
"go.mongodb.org/mongo-driver/bson" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Service\Swagger; | |
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer; | |
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | |
final class SwaggerDecorator implements NormalizerInterface | |
{ | |
private $decorated; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Service\DataProvider; | |
use ApiPlatform\Core\DataProvider\SubresourceDataProviderInterface; | |
use ApiPlatform\Core\Exception\ResourceClassNotSupportedException; | |
use Doctrine\Common\Persistence\ManagerRegistry; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\Query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the API Platform project. | |
* | |
* (c) Kévin Dunglas <dunglas@gmail.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |