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
const express = require('express'); | |
const { z } = require('zod'); | |
const { generateOpenAPISpec } = require('./openapi-generator'); | |
const app = express(); | |
// Wrapper middleware function | |
function validateSchema(schema) { | |
return function (req, res, next) { | |
try { |
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" | |
// Example object which may require optional arguments | |
type Server struct { | |
port int | |
host string | |
debug bool | |
} |