Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 307d607

Browse files
authored
Merge pull request #4 from sherweb/fix/bad-generator
Fix/bad generator
2 parents 842843d + df49773 commit 307d607

File tree

1,089 files changed

+248215
-35780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,089 files changed

+248215
-35780
lines changed

.env.example

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
/.env
3+
experiment

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

.openapi-generator/config.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ gitRepoId: go-netbox/v4
66

77
packageName: netbox
88

9-
globalProperty:
10-
apiDocs: false
11-
modelDocs: false
12-
apiTests: false
13-
modelTests: false
9+
globalProperties:
10+
apiDocs: "false"
11+
modelDocs: "false"
12+
apiTests: "false"
13+
modelTests: "false"
1414

1515
additionalProperties:
1616
disallowAdditionalPropertiesIfNotPresent: "false"
17-
packageVersion: "3"
18-
enumClassPrefix: true
17+
generateInterfaces: "true"
18+
isGoSubmodule: "true"
19+
packageName: "netbox"
20+
packageVersion: "4"
21+
useDefaultValuesForRequiredVars: "true"
22+
enumClassPrefix: "true"

api/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146568,7 +146568,6 @@ components:
146568146568
format: int64
146569146569
readOnly: true
146570146570
required:
146571-
- cluster_count
146572146571
- display
146573146572
- id
146574146573
- name
@@ -146635,7 +146634,6 @@ components:
146635146634
format: int64
146636146635
readOnly: true
146637146636
required:
146638-
- cluster_count
146639146637
- display
146640146638
- id
146641146639
- name
@@ -150671,7 +150669,6 @@ components:
150671150669
format: int64
150672150670
readOnly: true
150673150671
required:
150674-
- cluster_count
150675150672
- created
150676150673
- display
150677150674
- id
@@ -150810,7 +150807,6 @@ components:
150810150807
format: int64
150811150808
readOnly: true
150812150809
required:
150813-
- cluster_count
150814150810
- created
150815150811
- display
150816150812
- id
@@ -185537,7 +185533,6 @@ components:
185537185533
readOnly: true
185538185534
required:
185539185535
- circuit_count
185540-
- cluster_count
185541185536
- created
185542185537
- display
185543185538
- id

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
module github.com/sherweb/go-netbox/v4
22

3-
go 1.18
4-
5-
require (
6-
)
3+
go 1.22.5

go.sum

Lines changed: 0 additions & 11 deletions
This file was deleted.

main.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

netbox/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof

netbox/.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

0 commit comments

Comments
 (0)