Steps to install yamlfmt and go in wsl
sudo apt update && sudo apt install -y golang
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
source ~/.bashrc
Steps to install yamlfmt and go in wsl
sudo apt update && sudo apt install -y golang
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
source ~/.bashrc
Mosquitto comes with a password file generating utility called mosquitto_passwd.
mosquitto_passwd -c /etc/mosquitto/passwd <user>
Ensure that the file is managed by the appropriate user and group.
chown mosquitto:mosquitto /etc/mosquitto/passwd
Now restart Mosquitto server.
systemctl restart mosquitto
The command below will show what ports are listening (look for *:1883 (LISTEN))
lsof -i -P -n | grep LISTEN
# Now install spectral
npm init -y
npm install -g @stoplight/spectral-cli
npm install --save-dev @stoplight/spectral-cli spectral-aws-apigateway-ruleset
spectral
# Create ruleset
echo 'extends: ["spectral:oas"]' > .spectral.yaml
Or create a file with the following content
# Check openapi template
spectral lint openapi-api.yaml
# Install go and set path
sudo apt update
sudo apt install golang-go
export PATH="$HOME/go/bin:$PATH"
source ~/.bashrc
# Install nodejs and npm
sudo apt install nodejs npm # Create a directory for global npm packages
mkdir -p ~/.npm-global
# Configure npm to use this directory
npm config set prefix '~/.npm-global'
# Add to your PATH (add this to ~/.bashrc to make it permanent)
export PATH="$HOME/.npm-global/bin:$PATH"
# Reload your shell
source ~/.bashrc
# Now install spectral
npm install -g @stoplight/spectral-cli
I was experiencing issues with the claude code extension in my new windows machine. And I had this as well with linux.
For windows I should install the claude code terminal and then login with the anthropic console.
irm https://claude.ai/install.ps1 | iex
Then edit the path on environemnt variables and add this path.
C:\Users\alega\.local\bin
After that the vscode extension started to work.
Great tool to check openapi templates
go install github.com/oasdiff/oasdiff@latest
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc
source ~/.bashrc
oasdiff
Open VS Code Settings (JSON) and add:
Ctrl+Shift+P (or Cmd+Shift+P on Mac)