Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openapi fix spec #30

Merged
merged 31 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
41ee992
feat: :sparkles: Support Nautobot 2.x
chadell Jan 15, 2024
313b953
Use latest 1.x version
chadell Jan 15, 2024
ec4e7d9
full test
chadell Jan 15, 2024
be2afc7
update ci version
chadell Jan 15, 2024
b3b71b7
bump nautobot to 2.1.9
Jun 21, 2024
790c2e0
switch to correct git module
Jun 21, 2024
92f4a3b
fix dependencies
TobiPeterG Jun 21, 2024
74afcfa
Remove old commands
TobiPeterG Jun 21, 2024
e0db264
switch to openapi-generator
TobiPeterG Jul 9, 2024
1c70f6f
switch to swagger-codegen
TobiPeterG Jul 10, 2024
e341364
Nautobot bindings 2.16-beta
TobiPeterG Jul 10, 2024
f5f3d65
fix github workflow
TobiPeterG Jul 11, 2024
2e9d3e5
simplify code generation
TobiPeterG Jul 11, 2024
5eff772
Patch spec file
TobiPeterG Aug 26, 2024
92216ee
Fix spec patching, add missing "time" imports
TobiPeterG Aug 27, 2024
4091d92
Auto generate tests and update to nautobot 2.3.1
TobiPeterG Aug 27, 2024
a065233
Do not skip spec validation
TobiPeterG Aug 27, 2024
4834308
Update github workflow to nautobot 2.3.1
TobiPeterG Aug 27, 2024
438b5b9
Re-add LICENSE
TobiPeterG Aug 27, 2024
82790ca
remove unused patches
TobiPeterG Aug 28, 2024
dcf52af
install docker-compose in ci
TobiPeterG Aug 29, 2024
2f6abbe
Add temporary branch for terraform
TobiPeterG Sep 3, 2024
11cc935
Make cloud_account_count not required for Manufacturer
TobiPeterG Sep 4, 2024
87f7d48
Remove all _count properties from Manufacturer's required list
TobiPeterG Sep 4, 2024
e00feef
Remove all _count parameters from required list
TobiPeterG Sep 5, 2024
660fbea
Document what needs to be fixed in spec patcher
TobiPeterG Sep 6, 2024
fe6c860
Update to Nautobot 2.3.2
TobiPeterG Sep 6, 2024
c2c6625
Correctly fix PowerFeed and Prefix
TobiPeterG Sep 6, 2024
58ffcc5
Remove .travis.yml
TobiPeterG Sep 6, 2024
b875a8e
Fix AvailableIP spec
TobiPeterG Sep 14, 2024
e8af195
Use manual README and release workflow
TobiPeterG Sep 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ on: # yamllint disable-line rule:truthy rule:comments
tags:
- "v*"
pull_request: ~
concurrency: # Cancel any existing runs of this workflow for this same PR
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
test:
runs-on: "ubuntu-20.04"
env:
NAUTOBOT_VER: "1.5.0"
PYTHON_VER: "3.9"
NAUTOBOT_VER: "2.3.1"
PYTHON_VER: "3.11"
steps:
- name: "Get go-nautobot code"
uses: actions/checkout@v3
- name: "Run tests"
run: "docker-compose --project-name go_nautobot -f development/docker-compose.yml up --build --abort-on-container-exit --exit-code-from oapi"
run: "cd development"
run: "docker-compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit --exit-code-from oapi"
env:
NAUTOBOT_URL: "http://nautobot:8080/api/"
NAUTOBOT_TOKEN: "0123456789abcdef0123456789abcdef01234567"
Expand Down
77 changes: 24 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,24 @@
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### PyCharm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
# https://plugins.jetbrains.com/plugin/7973-sonarlint
.idea/**/sonarlint/

# SonarQube Plugin
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator-enh.xml
.idea/**/markdown-navigator/

# Cache file creation bug
# See https://youtrack.jetbrains.com/issue/JBR-2257
.idea/$CACHE_FILE$

# CodeStream plugin
# https://plugins.jetbrains.com/plugin/12206-codestream
.idea/codestream.xml

### vscode ###
.vscode/*
*.code-workspace
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
Loading