songtradr_api_client_ruby 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +5 -30
- data/docs/ImageRecognitionResponse.md +2 -2
- data/docs/MusicalFeaturesDTO.md +78 -78
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingMediumDTO.md +4 -4
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/VideoRecognitionResponse.md +2 -2
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/user_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api_client.rb +4 -4
- data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
- data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +4 -4
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +557 -557
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +22 -22
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +35 -35
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +17 -17
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +27 -27
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/token_request.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +4 -4
- data/lib/songtradr_api_client_ruby/version.rb +3 -3
- data/lib/songtradr_api_client_ruby.rb +2 -27
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +2 -2
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/playlist_api_spec.rb +2 -2
- data/spec/api/recording_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +2 -2
- data/spec/models/category_medium_dto_spec.rb +2 -2
- data/spec/models/category_minimal_dto_spec.rb +2 -2
- data/spec/models/config_access_dto_spec.rb +2 -2
- data/spec/models/config_identifier_dto_spec.rb +2 -2
- data/spec/models/contributor_type_dto_spec.rb +2 -2
- data/spec/models/curate_playlist_dto_spec.rb +2 -2
- data/spec/models/curate_playlist_response_dto_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/field_summary_dto_spec.rb +2 -2
- data/spec/models/file_dto_spec.rb +2 -2
- data/spec/models/file_list_dto_spec.rb +2 -2
- data/spec/models/file_small_dto_spec.rb +2 -2
- data/spec/models/file_upload_dto_spec.rb +2 -2
- data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
- data/spec/models/files_summary_dto_spec.rb +2 -2
- data/spec/models/forgot_password_dto_spec.rb +2 -2
- data/spec/models/genre_dto_spec.rb +2 -2
- data/spec/models/genre_minimal_dto_spec.rb +2 -2
- data/spec/models/genres_summary_dto_spec.rb +2 -2
- data/spec/models/image_recognition_response_spec.rb +2 -2
- data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
- data/spec/models/jwt_token_dto_spec.rb +2 -2
- data/spec/models/login_dto_spec.rb +2 -2
- data/spec/models/musical_features_dto_spec.rb +171 -171
- data/spec/models/party_small_dto_spec.rb +2 -2
- data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
- data/spec/models/recording_genre_prediction_dto_spec.rb +5 -5
- data/spec/models/recording_list_dto_spec.rb +2 -2
- data/spec/models/recording_medium_dto_spec.rb +9 -9
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
- data/spec/models/recording_party_dto_spec.rb +4 -4
- data/spec/models/recording_small_dto_spec.rb +5 -5
- data/spec/models/recording_tag_small_dto_spec.rb +2 -2
- data/spec/models/save_user_dto_spec.rb +2 -2
- data/spec/models/search_filter_values_dto_spec.rb +2 -2
- data/spec/models/search_recording_granular_dto_spec.rb +2 -2
- data/spec/models/sign_up_dto_spec.rb +2 -2
- data/spec/models/tag_dto_spec.rb +2 -2
- data/spec/models/tag_small_dto_spec.rb +2 -2
- data/spec/models/taggram_dto_spec.rb +2 -2
- data/spec/models/tags_summary_dto_spec.rb +2 -2
- data/spec/models/tagstrength_dto_spec.rb +2 -2
- data/spec/models/title_dto_spec.rb +2 -2
- data/spec/models/token_request_spec.rb +2 -2
- data/spec/models/track_dto_spec.rb +2 -2
- data/spec/models/update_password_dto_spec.rb +2 -2
- data/spec/models/user_dto_spec.rb +2 -2
- data/spec/models/video_recognition_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +42 -146
- data/docs/AgeRange.md +0 -20
- data/docs/Beard.md +0 -20
- data/docs/BoundingBox.md +0 -24
- data/docs/DominantColor.md +0 -30
- data/docs/Emotion.md +0 -20
- data/docs/EyeDirection.md +0 -22
- data/docs/EyeOpen.md +0 -20
- data/docs/Eyeglasses.md +0 -20
- data/docs/FaceDetail.md +0 -50
- data/docs/FaceDetection.md +0 -20
- data/docs/FaceOccluded.md +0 -20
- data/docs/Gender.md +0 -20
- data/docs/ImageQuality.md +0 -20
- data/docs/Instance.md +0 -22
- data/docs/Label.md +0 -28
- data/docs/LabelAlias.md +0 -18
- data/docs/LabelCategory.md +0 -18
- data/docs/LabelDetection.md +0 -26
- data/docs/Landmark.md +0 -22
- data/docs/MouthOpen.md +0 -20
- data/docs/Mustache.md +0 -20
- data/docs/Parent.md +0 -18
- data/docs/Pose.md +0 -22
- data/docs/Smile.md +0 -20
- data/docs/Sunglasses.md +0 -20
- data/lib/songtradr_api_client_ruby/models/age_range.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/beard.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/bounding_box.rb +0 -241
- data/lib/songtradr_api_client_ruby/models/dominant_color.rb +0 -268
- data/lib/songtradr_api_client_ruby/models/emotion.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/eye_direction.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/eye_open.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/face_detail.rb +0 -362
- data/lib/songtradr_api_client_ruby/models/face_detection.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/face_occluded.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/gender.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/image_quality.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/instance.rb +0 -234
- data/lib/songtradr_api_client_ruby/models/label.rb +0 -267
- data/lib/songtradr_api_client_ruby/models/label_alias.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/label_category.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/label_detection.rb +0 -250
- data/lib/songtradr_api_client_ruby/models/landmark.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/mouth_open.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/mustache.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/parent.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/pose.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/smile.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/sunglasses.rb +0 -223
- data/spec/api_client_spec.rb +0 -223
- data/spec/configuration_spec.rb +0 -82
- data/spec/models/age_range_spec.rb +0 -42
- data/spec/models/beard_spec.rb +0 -42
- data/spec/models/bounding_box_spec.rb +0 -54
- data/spec/models/dominant_color_spec.rb +0 -72
- data/spec/models/emotion_spec.rb +0 -42
- data/spec/models/eye_direction_spec.rb +0 -48
- data/spec/models/eye_open_spec.rb +0 -42
- data/spec/models/eyeglasses_spec.rb +0 -42
- data/spec/models/face_detail_spec.rb +0 -132
- data/spec/models/face_detection_spec.rb +0 -42
- data/spec/models/face_occluded_spec.rb +0 -42
- data/spec/models/gender_spec.rb +0 -42
- data/spec/models/image_quality_spec.rb +0 -42
- data/spec/models/instance_spec.rb +0 -48
- data/spec/models/label_alias_spec.rb +0 -36
- data/spec/models/label_category_spec.rb +0 -36
- data/spec/models/label_detection_spec.rb +0 -60
- data/spec/models/label_spec.rb +0 -66
- data/spec/models/landmark_spec.rb +0 -48
- data/spec/models/mouth_open_spec.rb +0 -42
- data/spec/models/mustache_spec.rb +0 -42
- data/spec/models/parent_spec.rb +0 -36
- data/spec/models/pose_spec.rb +0 -48
- data/spec/models/smile_spec.rb +0 -42
- data/spec/models/sunglasses_spec.rb +0 -42
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.17.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.
|
|
9
|
+
OpenAPI Generator version: 7.3.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -37,272 +37,228 @@ describe SongtradrApiClientRuby::MusicalFeaturesDTO do
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
describe 'test attribute "
|
|
40
|
+
describe 'test attribute "primary_mood_cluster_affinity"' do
|
|
41
41
|
it 'should work' do
|
|
42
42
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
44
|
-
# validator.allowable_values.each do |value|
|
|
45
|
-
# expect { instance.arousal = value }.not_to raise_error
|
|
46
|
-
# end
|
|
47
43
|
end
|
|
48
44
|
end
|
|
49
45
|
|
|
50
|
-
describe 'test attribute "
|
|
46
|
+
describe 'test attribute "secondary_mood_cluster"' do
|
|
51
47
|
it 'should work' do
|
|
52
48
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
53
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
54
50
|
# validator.allowable_values.each do |value|
|
|
55
|
-
# expect { instance.
|
|
51
|
+
# expect { instance.secondary_mood_cluster = value }.not_to raise_error
|
|
56
52
|
# end
|
|
57
53
|
end
|
|
58
54
|
end
|
|
59
55
|
|
|
60
|
-
describe 'test attribute "
|
|
56
|
+
describe 'test attribute "production_rating"' do
|
|
61
57
|
it 'should work' do
|
|
62
58
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
59
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
64
60
|
# validator.allowable_values.each do |value|
|
|
65
|
-
# expect { instance.
|
|
61
|
+
# expect { instance.production_rating = value }.not_to raise_error
|
|
66
62
|
# end
|
|
67
63
|
end
|
|
68
64
|
end
|
|
69
65
|
|
|
70
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "production_rating_affinity"' do
|
|
71
67
|
it 'should work' do
|
|
72
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
|
|
74
|
-
# validator.allowable_values.each do |value|
|
|
75
|
-
# expect { instance.timbre = value }.not_to raise_error
|
|
76
|
-
# end
|
|
77
69
|
end
|
|
78
70
|
end
|
|
79
71
|
|
|
80
|
-
describe 'test attribute "
|
|
72
|
+
describe 'test attribute "performance_rating"' do
|
|
81
73
|
it 'should work' do
|
|
82
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
83
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
75
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
84
76
|
# validator.allowable_values.each do |value|
|
|
85
|
-
# expect { instance.
|
|
77
|
+
# expect { instance.performance_rating = value }.not_to raise_error
|
|
86
78
|
# end
|
|
87
79
|
end
|
|
88
80
|
end
|
|
89
81
|
|
|
90
|
-
describe 'test attribute "
|
|
82
|
+
describe 'test attribute "performance_rating_affinity"' do
|
|
91
83
|
it 'should work' do
|
|
92
84
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
|
94
|
-
# validator.allowable_values.each do |value|
|
|
95
|
-
# expect { instance.valence = value }.not_to raise_error
|
|
96
|
-
# end
|
|
97
85
|
end
|
|
98
86
|
end
|
|
99
87
|
|
|
100
|
-
describe 'test attribute "
|
|
88
|
+
describe 'test attribute "song_rating"' do
|
|
101
89
|
it 'should work' do
|
|
102
90
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
103
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
91
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
104
92
|
# validator.allowable_values.each do |value|
|
|
105
|
-
# expect { instance.
|
|
93
|
+
# expect { instance.song_rating = value }.not_to raise_error
|
|
106
94
|
# end
|
|
107
95
|
end
|
|
108
96
|
end
|
|
109
97
|
|
|
110
|
-
describe 'test attribute "
|
|
98
|
+
describe 'test attribute "song_rating_affinity"' do
|
|
111
99
|
it 'should work' do
|
|
112
100
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
113
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
|
114
|
-
# validator.allowable_values.each do |value|
|
|
115
|
-
# expect { instance.origin_decade = value }.not_to raise_error
|
|
116
|
-
# end
|
|
117
101
|
end
|
|
118
102
|
end
|
|
119
103
|
|
|
120
|
-
describe 'test attribute "
|
|
104
|
+
describe 'test attribute "audience_age"' do
|
|
121
105
|
it 'should work' do
|
|
122
106
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
123
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
107
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
124
108
|
# validator.allowable_values.each do |value|
|
|
125
|
-
# expect { instance.
|
|
109
|
+
# expect { instance.audience_age = value }.not_to raise_error
|
|
126
110
|
# end
|
|
127
111
|
end
|
|
128
112
|
end
|
|
129
113
|
|
|
130
|
-
describe 'test attribute "
|
|
114
|
+
describe 'test attribute "audience_age_affinity"' do
|
|
131
115
|
it 'should work' do
|
|
132
116
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
133
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax", "karaoke"])
|
|
134
|
-
# validator.allowable_values.each do |value|
|
|
135
|
-
# expect { instance.use_case = value }.not_to raise_error
|
|
136
|
-
# end
|
|
137
117
|
end
|
|
138
118
|
end
|
|
139
119
|
|
|
140
|
-
describe 'test attribute "
|
|
120
|
+
describe 'test attribute "secondary_audience_age"' do
|
|
141
121
|
it 'should work' do
|
|
142
122
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
143
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
123
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
144
124
|
# validator.allowable_values.each do |value|
|
|
145
|
-
# expect { instance.
|
|
125
|
+
# expect { instance.secondary_audience_age = value }.not_to raise_error
|
|
146
126
|
# end
|
|
147
127
|
end
|
|
148
128
|
end
|
|
149
129
|
|
|
150
|
-
describe 'test attribute "
|
|
130
|
+
describe 'test attribute "secondary_audience_age_affinity"' do
|
|
151
131
|
it 'should work' do
|
|
152
132
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
153
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
|
154
|
-
# validator.allowable_values.each do |value|
|
|
155
|
-
# expect { instance.language_of_performance = value }.not_to raise_error
|
|
156
|
-
# end
|
|
157
133
|
end
|
|
158
134
|
end
|
|
159
135
|
|
|
160
|
-
describe 'test attribute "
|
|
136
|
+
describe 'test attribute "tertiary_audience_age"' do
|
|
161
137
|
it 'should work' do
|
|
162
138
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
163
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
139
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
164
140
|
# validator.allowable_values.each do |value|
|
|
165
|
-
# expect { instance.
|
|
141
|
+
# expect { instance.tertiary_audience_age = value }.not_to raise_error
|
|
166
142
|
# end
|
|
167
143
|
end
|
|
168
144
|
end
|
|
169
145
|
|
|
170
|
-
describe 'test attribute "
|
|
146
|
+
describe 'test attribute "tertiary_audience_age_affinity"' do
|
|
171
147
|
it 'should work' do
|
|
172
148
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
173
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
174
|
-
# validator.allowable_values.each do |value|
|
|
175
|
-
# expect { instance.energy = value }.not_to raise_error
|
|
176
|
-
# end
|
|
177
149
|
end
|
|
178
150
|
end
|
|
179
151
|
|
|
180
|
-
describe 'test attribute "
|
|
152
|
+
describe 'test attribute "audience_gender"' do
|
|
181
153
|
it 'should work' do
|
|
182
154
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
183
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
155
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["male", "female"])
|
|
184
156
|
# validator.allowable_values.each do |value|
|
|
185
|
-
# expect { instance.
|
|
157
|
+
# expect { instance.audience_gender = value }.not_to raise_error
|
|
186
158
|
# end
|
|
187
159
|
end
|
|
188
160
|
end
|
|
189
161
|
|
|
190
|
-
describe 'test attribute "
|
|
162
|
+
describe 'test attribute "audience_gender_affinity"' do
|
|
191
163
|
it 'should work' do
|
|
192
164
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
193
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
|
194
|
-
# validator.allowable_values.each do |value|
|
|
195
|
-
# expect { instance.groovyness = value }.not_to raise_error
|
|
196
|
-
# end
|
|
197
165
|
end
|
|
198
166
|
end
|
|
199
167
|
|
|
200
|
-
describe 'test attribute "
|
|
168
|
+
describe 'test attribute "audience_region_affinity"' do
|
|
201
169
|
it 'should work' do
|
|
202
170
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
203
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
|
204
|
-
# validator.allowable_values.each do |value|
|
|
205
|
-
# expect { instance.harmony = value }.not_to raise_error
|
|
206
|
-
# end
|
|
207
171
|
end
|
|
208
172
|
end
|
|
209
173
|
|
|
210
|
-
describe 'test attribute "
|
|
174
|
+
describe 'test attribute "secondary_audience_region"' do
|
|
211
175
|
it 'should work' do
|
|
212
176
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
213
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
177
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
214
178
|
# validator.allowable_values.each do |value|
|
|
215
|
-
# expect { instance.
|
|
179
|
+
# expect { instance.secondary_audience_region = value }.not_to raise_error
|
|
216
180
|
# end
|
|
217
181
|
end
|
|
218
182
|
end
|
|
219
183
|
|
|
220
|
-
describe 'test attribute "
|
|
184
|
+
describe 'test attribute "secondary_audience_region_affinity"' do
|
|
221
185
|
it 'should work' do
|
|
222
186
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
223
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
224
|
-
# validator.allowable_values.each do |value|
|
|
225
|
-
# expect { instance.primary_mood_cluster = value }.not_to raise_error
|
|
226
|
-
# end
|
|
227
187
|
end
|
|
228
188
|
end
|
|
229
189
|
|
|
230
|
-
describe 'test attribute "
|
|
190
|
+
describe 'test attribute "tertiary_audience_region"' do
|
|
231
191
|
it 'should work' do
|
|
232
192
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
233
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
193
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
234
194
|
# validator.allowable_values.each do |value|
|
|
235
|
-
# expect { instance.
|
|
195
|
+
# expect { instance.tertiary_audience_region = value }.not_to raise_error
|
|
236
196
|
# end
|
|
237
197
|
end
|
|
238
198
|
end
|
|
239
199
|
|
|
240
|
-
describe 'test attribute "
|
|
200
|
+
describe 'test attribute "tertiary_audience_region_affinity"' do
|
|
241
201
|
it 'should work' do
|
|
242
202
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
243
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
|
244
|
-
# validator.allowable_values.each do |value|
|
|
245
|
-
# expect { instance.rhythm = value }.not_to raise_error
|
|
246
|
-
# end
|
|
247
203
|
end
|
|
248
204
|
end
|
|
249
205
|
|
|
250
|
-
describe 'test attribute "
|
|
206
|
+
describe 'test attribute "origin_region"' do
|
|
251
207
|
it 'should work' do
|
|
252
208
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
253
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
209
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
254
210
|
# validator.allowable_values.each do |value|
|
|
255
|
-
# expect { instance.
|
|
211
|
+
# expect { instance.origin_region = value }.not_to raise_error
|
|
256
212
|
# end
|
|
257
213
|
end
|
|
258
214
|
end
|
|
259
215
|
|
|
260
|
-
describe 'test attribute "
|
|
216
|
+
describe 'test attribute "origin_region_affinity"' do
|
|
261
217
|
it 'should work' do
|
|
262
218
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
263
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["major key", "minor key", "neutral key"])
|
|
264
|
-
# validator.allowable_values.each do |value|
|
|
265
|
-
# expect { instance.scale = value }.not_to raise_error
|
|
266
|
-
# end
|
|
267
219
|
end
|
|
268
220
|
end
|
|
269
221
|
|
|
270
|
-
describe 'test attribute "
|
|
222
|
+
describe 'test attribute "origin_decade_affinity"' do
|
|
271
223
|
it 'should work' do
|
|
272
224
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
273
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
|
|
274
|
-
# validator.allowable_values.each do |value|
|
|
275
|
-
# expect { instance.key = value }.not_to raise_error
|
|
276
|
-
# end
|
|
277
225
|
end
|
|
278
226
|
end
|
|
279
227
|
|
|
280
|
-
describe 'test attribute "
|
|
228
|
+
describe 'test attribute "language_of_performance_affinity"' do
|
|
281
229
|
it 'should work' do
|
|
282
230
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
283
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["acoustic", "electric", "electronic", "mixed sound generation"])
|
|
284
|
-
# validator.allowable_values.each do |value|
|
|
285
|
-
# expect { instance.sound_generation = value }.not_to raise_error
|
|
286
|
-
# end
|
|
287
231
|
end
|
|
288
232
|
end
|
|
289
233
|
|
|
290
|
-
describe 'test attribute "
|
|
234
|
+
describe 'test attribute "curateability_affinity"' do
|
|
291
235
|
it 'should work' do
|
|
292
236
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
293
237
|
end
|
|
294
238
|
end
|
|
295
239
|
|
|
296
|
-
describe 'test attribute "
|
|
240
|
+
describe 'test attribute "use_case_affinity"' do
|
|
297
241
|
it 'should work' do
|
|
298
242
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
299
|
-
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
describe 'test attribute "industry_suitability"' do
|
|
247
|
+
it 'should work' do
|
|
248
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
249
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
|
|
300
250
|
# validator.allowable_values.each do |value|
|
|
301
|
-
# expect { instance.
|
|
251
|
+
# expect { instance.industry_suitability = value }.not_to raise_error
|
|
302
252
|
# end
|
|
303
253
|
end
|
|
304
254
|
end
|
|
305
255
|
|
|
256
|
+
describe 'test attribute "industry_suitability_affinity"' do
|
|
257
|
+
it 'should work' do
|
|
258
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
306
262
|
describe 'test attribute "secondary_mood_cluster_affinity"' do
|
|
307
263
|
it 'should work' do
|
|
308
264
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -399,218 +355,262 @@ describe SongtradrApiClientRuby::MusicalFeaturesDTO do
|
|
|
399
355
|
end
|
|
400
356
|
end
|
|
401
357
|
|
|
402
|
-
describe 'test attribute "
|
|
358
|
+
describe 'test attribute "audience_region"' do
|
|
403
359
|
it 'should work' do
|
|
404
360
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
405
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
361
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
406
362
|
# validator.allowable_values.each do |value|
|
|
407
|
-
# expect { instance.
|
|
363
|
+
# expect { instance.audience_region = value }.not_to raise_error
|
|
408
364
|
# end
|
|
409
365
|
end
|
|
410
366
|
end
|
|
411
367
|
|
|
412
|
-
describe 'test attribute "
|
|
413
|
-
it 'should work' do
|
|
414
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
415
|
-
end
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
describe 'test attribute "performance_rating"' do
|
|
368
|
+
describe 'test attribute "dominant_instrument"' do
|
|
419
369
|
it 'should work' do
|
|
420
370
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
421
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
371
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
422
372
|
# validator.allowable_values.each do |value|
|
|
423
|
-
# expect { instance.
|
|
373
|
+
# expect { instance.dominant_instrument = value }.not_to raise_error
|
|
424
374
|
# end
|
|
425
375
|
end
|
|
426
376
|
end
|
|
427
377
|
|
|
428
|
-
describe 'test attribute "
|
|
429
|
-
it 'should work' do
|
|
430
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
431
|
-
end
|
|
432
|
-
end
|
|
433
|
-
|
|
434
|
-
describe 'test attribute "song_rating"' do
|
|
378
|
+
describe 'test attribute "energy"' do
|
|
435
379
|
it 'should work' do
|
|
436
380
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
437
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
381
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
438
382
|
# validator.allowable_values.each do |value|
|
|
439
|
-
# expect { instance.
|
|
383
|
+
# expect { instance.energy = value }.not_to raise_error
|
|
440
384
|
# end
|
|
441
385
|
end
|
|
442
386
|
end
|
|
443
387
|
|
|
444
|
-
describe 'test attribute "
|
|
388
|
+
describe 'test attribute "engagement"' do
|
|
445
389
|
it 'should work' do
|
|
446
390
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
391
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
|
392
|
+
# validator.allowable_values.each do |value|
|
|
393
|
+
# expect { instance.engagement = value }.not_to raise_error
|
|
394
|
+
# end
|
|
447
395
|
end
|
|
448
396
|
end
|
|
449
397
|
|
|
450
|
-
describe 'test attribute "
|
|
398
|
+
describe 'test attribute "groovyness"' do
|
|
451
399
|
it 'should work' do
|
|
452
400
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
453
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
401
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
|
454
402
|
# validator.allowable_values.each do |value|
|
|
455
|
-
# expect { instance.
|
|
403
|
+
# expect { instance.groovyness = value }.not_to raise_error
|
|
456
404
|
# end
|
|
457
405
|
end
|
|
458
406
|
end
|
|
459
407
|
|
|
460
|
-
describe 'test attribute "
|
|
408
|
+
describe 'test attribute "harmony"' do
|
|
461
409
|
it 'should work' do
|
|
462
410
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
411
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
|
412
|
+
# validator.allowable_values.each do |value|
|
|
413
|
+
# expect { instance.harmony = value }.not_to raise_error
|
|
414
|
+
# end
|
|
463
415
|
end
|
|
464
416
|
end
|
|
465
417
|
|
|
466
|
-
describe 'test attribute "
|
|
418
|
+
describe 'test attribute "pleasantness"' do
|
|
467
419
|
it 'should work' do
|
|
468
420
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
469
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
421
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
|
470
422
|
# validator.allowable_values.each do |value|
|
|
471
|
-
# expect { instance.
|
|
423
|
+
# expect { instance.pleasantness = value }.not_to raise_error
|
|
472
424
|
# end
|
|
473
425
|
end
|
|
474
426
|
end
|
|
475
427
|
|
|
476
|
-
describe 'test attribute "
|
|
428
|
+
describe 'test attribute "primary_mood_cluster"' do
|
|
477
429
|
it 'should work' do
|
|
478
430
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
431
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
432
|
+
# validator.allowable_values.each do |value|
|
|
433
|
+
# expect { instance.primary_mood_cluster = value }.not_to raise_error
|
|
434
|
+
# end
|
|
479
435
|
end
|
|
480
436
|
end
|
|
481
437
|
|
|
482
|
-
describe 'test attribute "
|
|
438
|
+
describe 'test attribute "primary_sound_character"' do
|
|
483
439
|
it 'should work' do
|
|
484
440
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
485
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
441
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
|
486
442
|
# validator.allowable_values.each do |value|
|
|
487
|
-
# expect { instance.
|
|
443
|
+
# expect { instance.primary_sound_character = value }.not_to raise_error
|
|
488
444
|
# end
|
|
489
445
|
end
|
|
490
446
|
end
|
|
491
447
|
|
|
492
|
-
describe 'test attribute "
|
|
448
|
+
describe 'test attribute "rhythm"' do
|
|
493
449
|
it 'should work' do
|
|
494
450
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
451
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
|
452
|
+
# validator.allowable_values.each do |value|
|
|
453
|
+
# expect { instance.rhythm = value }.not_to raise_error
|
|
454
|
+
# end
|
|
495
455
|
end
|
|
496
456
|
end
|
|
497
457
|
|
|
498
|
-
describe 'test attribute "
|
|
458
|
+
describe 'test attribute "roughness"' do
|
|
499
459
|
it 'should work' do
|
|
500
460
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
501
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
461
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
|
|
502
462
|
# validator.allowable_values.each do |value|
|
|
503
|
-
# expect { instance.
|
|
463
|
+
# expect { instance.roughness = value }.not_to raise_error
|
|
504
464
|
# end
|
|
505
465
|
end
|
|
506
466
|
end
|
|
507
467
|
|
|
508
|
-
describe 'test attribute "
|
|
468
|
+
describe 'test attribute "scale"' do
|
|
509
469
|
it 'should work' do
|
|
510
470
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
471
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["major key", "minor key", "neutral key"])
|
|
472
|
+
# validator.allowable_values.each do |value|
|
|
473
|
+
# expect { instance.scale = value }.not_to raise_error
|
|
474
|
+
# end
|
|
511
475
|
end
|
|
512
476
|
end
|
|
513
477
|
|
|
514
|
-
describe 'test attribute "
|
|
478
|
+
describe 'test attribute "key"' do
|
|
515
479
|
it 'should work' do
|
|
516
480
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
481
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
|
|
482
|
+
# validator.allowable_values.each do |value|
|
|
483
|
+
# expect { instance.key = value }.not_to raise_error
|
|
484
|
+
# end
|
|
517
485
|
end
|
|
518
486
|
end
|
|
519
487
|
|
|
520
|
-
describe 'test attribute "
|
|
488
|
+
describe 'test attribute "sound_generation"' do
|
|
521
489
|
it 'should work' do
|
|
522
490
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
523
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
491
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["acoustic", "electric", "electronic", "mixed sound generation"])
|
|
524
492
|
# validator.allowable_values.each do |value|
|
|
525
|
-
# expect { instance.
|
|
493
|
+
# expect { instance.sound_generation = value }.not_to raise_error
|
|
526
494
|
# end
|
|
527
495
|
end
|
|
528
496
|
end
|
|
529
497
|
|
|
530
|
-
describe 'test attribute "
|
|
498
|
+
describe 'test attribute "tempo"' do
|
|
531
499
|
it 'should work' do
|
|
532
500
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
501
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"])
|
|
502
|
+
# validator.allowable_values.each do |value|
|
|
503
|
+
# expect { instance.tempo = value }.not_to raise_error
|
|
504
|
+
# end
|
|
533
505
|
end
|
|
534
506
|
end
|
|
535
507
|
|
|
536
|
-
describe 'test attribute "
|
|
508
|
+
describe 'test attribute "texture"' do
|
|
537
509
|
it 'should work' do
|
|
538
510
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
539
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
511
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
|
|
540
512
|
# validator.allowable_values.each do |value|
|
|
541
|
-
# expect { instance.
|
|
513
|
+
# expect { instance.texture = value }.not_to raise_error
|
|
542
514
|
# end
|
|
543
515
|
end
|
|
544
516
|
end
|
|
545
517
|
|
|
546
|
-
describe 'test attribute "
|
|
518
|
+
describe 'test attribute "timbre"' do
|
|
547
519
|
it 'should work' do
|
|
548
520
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
521
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
|
|
522
|
+
# validator.allowable_values.each do |value|
|
|
523
|
+
# expect { instance.timbre = value }.not_to raise_error
|
|
524
|
+
# end
|
|
549
525
|
end
|
|
550
526
|
end
|
|
551
527
|
|
|
552
|
-
describe 'test attribute "
|
|
528
|
+
describe 'test attribute "tonality"' do
|
|
553
529
|
it 'should work' do
|
|
554
530
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
555
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
531
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
|
|
556
532
|
# validator.allowable_values.each do |value|
|
|
557
|
-
# expect { instance.
|
|
533
|
+
# expect { instance.tonality = value }.not_to raise_error
|
|
558
534
|
# end
|
|
559
535
|
end
|
|
560
536
|
end
|
|
561
537
|
|
|
562
|
-
describe 'test attribute "
|
|
538
|
+
describe 'test attribute "valence"' do
|
|
563
539
|
it 'should work' do
|
|
564
540
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
541
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
|
542
|
+
# validator.allowable_values.each do |value|
|
|
543
|
+
# expect { instance.valence = value }.not_to raise_error
|
|
544
|
+
# end
|
|
565
545
|
end
|
|
566
546
|
end
|
|
567
547
|
|
|
568
|
-
describe 'test attribute "
|
|
548
|
+
describe 'test attribute "vocals"' do
|
|
569
549
|
it 'should work' do
|
|
570
550
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
551
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
|
|
552
|
+
# validator.allowable_values.each do |value|
|
|
553
|
+
# expect { instance.vocals = value }.not_to raise_error
|
|
554
|
+
# end
|
|
571
555
|
end
|
|
572
556
|
end
|
|
573
557
|
|
|
574
|
-
describe 'test attribute "
|
|
558
|
+
describe 'test attribute "origin_decade"' do
|
|
575
559
|
it 'should work' do
|
|
576
560
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
561
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
|
562
|
+
# validator.allowable_values.each do |value|
|
|
563
|
+
# expect { instance.origin_decade = value }.not_to raise_error
|
|
564
|
+
# end
|
|
577
565
|
end
|
|
578
566
|
end
|
|
579
567
|
|
|
580
|
-
describe 'test attribute "
|
|
568
|
+
describe 'test attribute "curateability"' do
|
|
581
569
|
it 'should work' do
|
|
582
570
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
571
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
|
572
|
+
# validator.allowable_values.each do |value|
|
|
573
|
+
# expect { instance.curateability = value }.not_to raise_error
|
|
574
|
+
# end
|
|
583
575
|
end
|
|
584
576
|
end
|
|
585
577
|
|
|
586
|
-
describe 'test attribute "
|
|
578
|
+
describe 'test attribute "use_case"' do
|
|
587
579
|
it 'should work' do
|
|
588
580
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
581
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax", "karaoke"])
|
|
582
|
+
# validator.allowable_values.each do |value|
|
|
583
|
+
# expect { instance.use_case = value }.not_to raise_error
|
|
584
|
+
# end
|
|
589
585
|
end
|
|
590
586
|
end
|
|
591
587
|
|
|
592
|
-
describe 'test attribute "
|
|
588
|
+
describe 'test attribute "channel_suitability"' do
|
|
593
589
|
it 'should work' do
|
|
594
590
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
595
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
591
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
|
596
592
|
# validator.allowable_values.each do |value|
|
|
597
|
-
# expect { instance.
|
|
593
|
+
# expect { instance.channel_suitability = value }.not_to raise_error
|
|
598
594
|
# end
|
|
599
595
|
end
|
|
600
596
|
end
|
|
601
597
|
|
|
602
|
-
describe 'test attribute "
|
|
598
|
+
describe 'test attribute "language_of_performance"' do
|
|
603
599
|
it 'should work' do
|
|
604
600
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
601
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
|
602
|
+
# validator.allowable_values.each do |value|
|
|
603
|
+
# expect { instance.language_of_performance = value }.not_to raise_error
|
|
604
|
+
# end
|
|
605
605
|
end
|
|
606
606
|
end
|
|
607
607
|
|
|
608
|
-
describe 'test attribute "
|
|
608
|
+
describe 'test attribute "arousal"' do
|
|
609
609
|
it 'should work' do
|
|
610
610
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
611
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
611
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
612
612
|
# validator.allowable_values.each do |value|
|
|
613
|
-
# expect { instance.
|
|
613
|
+
# expect { instance.arousal = value }.not_to raise_error
|
|
614
614
|
# end
|
|
615
615
|
end
|
|
616
616
|
end
|